Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Disable third part cookies in Webview2 #4336

Open
yadav-shivam opened this issue Jan 31, 2024 · 4 comments
Open

[Feature]: Disable third part cookies in Webview2 #4336

yadav-shivam opened this issue Jan 31, 2024 · 4 comments
Labels
feature request feature request

Comments

@yadav-shivam
Copy link

Describe the feature/enhancement you need

I need a setting to disable or block third-party cookies. This feature is available in the Microsoft Edge browser but we need this in our browser which is based on Webview2.

The scenario/use case where you would use this feature

We have a browser based on Webview2 where we need to provide the feature to block the third-party cookies for security purposes.
Please expose some API for the same. This is available in Chromium and Edge as well.

How important is this request to you?

Critical. My app's basic functions wouldn't work without it.

Suggested implementation

No response

What does your app do? Is there a pending deadline for this request?

My App is a Industrial Browser which is running on a deadline to release it soon in the market.

@yadav-shivam yadav-shivam added the feature request feature request label Jan 31, 2024
@victorhuangwq
Copy link
Collaborator

We already have the tracking prevention API in WebView2. https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2trackingpreventionlevel?view=webview2-winrt-1.0.2210.55

Let me know if this is not what you are asking about, if so, could you take a screenshot of the settings in Microsoft Edge that you are speaking of?

@yadav-shivam
Copy link
Author

@victorhuangwq Thanks for Quick response, just to confirm what you are suggesting I am attaching a screenshot for Edge settings
Please check and confirm if this can be achieved with the API you suggested ?
BlockThirdPartyEdge

@victorhuangwq
Copy link
Collaborator

Unfortunate that is not the exact same thing. Here's what tracking prevention does. https://learn.microsoft.com/en-us/microsoft-edge/web-platform/tracking-prevention#current-tracking-prevention-behavior

Let me know if it does not achieve your objectives.

@yadav-shivam
Copy link
Author

@victorhuangwq No! We need the API to block third party cookies as shown in screenshot above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request
Projects
None yet
Development

No branches or pull requests

2 participants