Commit c0f05f4
committed
fix: add data: URI support to CSP for full page archives
Fixes #2621
When CRAWLER_FULL_PAGE_ARCHIVE=true is enabled, monolith generates
full page archives with CSS inlined as data URIs (data:text/css;base64,...).
The existing CSP header blocked these data URIs in the style-src directive,
causing CSS to fail loading.
Changes:
- Add 'data:' to style-src directive for CSS data URIs
- Add font-src directive with 'data:' support for inline fonts
This allows monolith-generated archives to render correctly while
maintaining CSP security for external resources.1 parent 98e173d commit c0f05f4
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments