- From: Maxim Tsoy <notifications@github.com>
- Date: Wed, 13 Oct 2021 12:17:22 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 13 October 2021 19:17:34 UTC
This is something we could use at Surfly. Here's our use case: At Surfly, we are building an [application-level proxy](https://www.surfly.com/blog/exploring-middleware-superpowers-with-surfly-proxy-technology/). Part of the sandbox system is URL encoding. We have an encoding scheme that maps arbitrary URLs to URLs within our own domain. At the same time, we want to make use of same-origin policy, and **replicate the cookie behaviour**. Since cookie scopes depend heavily on the site, we need to know whether a specific cookie will be processed by the browser, or ignored. For example, if an app does `document.cookie = 'ignore=this; domain=co.uk'`, the cookie will not be set. While translating this into the sandbox domain, we need to detect this. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/528#issuecomment-942638760
Received on Wednesday, 13 October 2021 19:17:34 UTC