WICG / isolated-web-apps

Repository for explainers and other documents related to the Isolated Web Apps proposal.
Other
204 stars 16 forks source link

Add blob: and data: to connect-src #28

Closed reillyeon closed 8 months ago

reillyeon commented 8 months ago

We've found that frameworks like https://shoelace.style/ effectively do fetch('data:...') to load internal resources. Since we already allow images and similar resources to be loaded from blob: or data: URLs it seems safe to allow it for fetch() and XMLHTTPRequest. The script-src policy will prevent data loaded this way from being evaluated as code.