Re: [w3c/ServiceWorker] "no-cors" CSS SOP violation (#719)

> response was cross-origin

@shhnjk, what is this cross-origin compared to?  The client initiating the request?  Or the document/stylesheet initiating the request?

I'm just curious if we care about the case where we have:

1. Document with origin foo.com load stylesheet "foo.com/A.css"
2. Stylesheet "foo.com/A.css" does `@import("bar.com/B.css")`
2. Stylesheet "bar.com/B.css" does `@import("foo.com/C.css")`

Is the "foo.com/C.css" load considered same-origin or cross-origin for the purposes of this check?  If its considered same-origin then it seems some information about the cross-origin "bar.com/B.css" has been leaked.

The situation is similar to how we handle CORS and redirects.  Once you redirect through a cross-origin that request is tainted as cross-origin even if its redirects back to same-origin.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/719#issuecomment-358504301

Received on Thursday, 18 January 2018 01:12:32 UTC