Skip to content

Commit

Permalink
Update CSP to match implementation (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiemc authored Aug 9, 2022
1 parent d9d5146 commit c713906
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Content-Security-Policy: base-uri 'none';
object-src 'none';
frame-src 'self' https:;
connect-src 'self' https:;
script-src 'self' 'wasm-unsafe-eval';
require-trusted-types-for 'script';
```

In this policy `'self'` refers to resources loaded from the application’s Web Bundle since its origin only addresses resources from within the bundle. `'self'` also excludes `blob:`, `filesystem:`, and other local schemes, as well as inline script, which makes it more difficult to use external resources gathered through `fetch()` to change the application's behavior. Cross-origin iframes, HTTP requests from JavaScript, and WebSocket connections are still allowed so that the application can interact with network resources.
Expand Down

0 comments on commit c713906

Please sign in to comment.