Re: [webrtc-extensions] Add a CSP check to RTCPeerConnection.constructor(). (#81)

Service worker allows you to intercept requests to server and reply with a newly created Response from the browser itself (see [FetchEvent](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent)). New response object is instance of [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) and thus can contain CSP header. What allows it to override current CSP policy. So having third-party service worker is not safe even with restrictive CSP.

-- 
GitHub Notification of comment by rumkin
Please view or discuss this issue at https://github.com/w3c/webrtc-extensions/pull/81#issuecomment-871600441 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 30 June 2021 17:37:24 UTC