|
68 | 68 | # https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/secure-pages/ |
69 | 69 | Content-Security-Policy = ''' |
70 | 70 | default-src 'self'; |
71 | | - connect-src 'self' https://*.ampproject.net https://csp-collector.appspot.com/csp/amp https://api.github.com https://platform.twitter.com; |
72 | | - font-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com; |
| 71 | + base-uri 'none'; |
| 72 | + connect-src 'self' *.ampproject.net csp-collector.appspot.com/csp/amp api.github.com platform.twitter.com; |
| 73 | + font-src 'self' fonts.googleapis.com fonts.gstatic.com; |
73 | 74 | form-action 'none'; |
74 | 75 | frame-ancestors 'self'; |
75 | | - frame-src 'self' https://jakejarvis.github.io https://*.ampproject.net https://cdn.ampproject.org https://app.usefathom.com https://buttons.github.io https://codepen.io https://cdpn.io https://platform.twitter.com https://player.vimeo.com https://www.youtube-nocookie.com; |
| 76 | + frame-src 'self' jakejarvis.github.io *.ampproject.net cdn.ampproject.org app.usefathom.com buttons.github.io codepen.io cdpn.io platform.twitter.com player.vimeo.com www.youtube-nocookie.com; |
76 | 77 | img-src 'self' data: https:; |
77 | 78 | manifest-src 'self'; |
78 | 79 | media-src 'self' data: https:; |
79 | 80 | object-src 'none'; |
80 | | - script-src 'self' 'unsafe-eval' https://cdn.ampproject.org/lts/v0.js https://cdn.ampproject.org/lts/v0/ https://cdn.ampproject.org/viewer/ https://cdn.ampproject.org/rtv/ https://3p.ampproject.net https://buttons.github.io https://gist.github.com https://syndication.twitter.com https://platform.twitter.com https://player.vimeo.com 'sha256-y3Xr/40/KQnUvqk/kZO5us6t3i/I49BsbYjsH8ELhVg=' 'sha256-JGG0npUp+0ABq/NY1azjpQ0WBtm+m5gU58mzF+2DCXY='; |
81 | | - style-src 'self' 'unsafe-inline' https://cdn.ampproject.org/rtv/ https://fonts.googleapis.com https://github.githubassets.com; |
| 81 | + script-src 'self' 'unsafe-eval' cdn.ampproject.org/lts/v0.js cdn.ampproject.org/lts/v0/ cdn.ampproject.org/viewer/ cdn.ampproject.org/rtv/ 3p.ampproject.net buttons.github.io gist.github.com syndication.twitter.com platform.twitter.com player.vimeo.com 'sha256-y3Xr/40/KQnUvqk/kZO5us6t3i/I49BsbYjsH8ELhVg=' 'sha256-JGG0npUp+0ABq/NY1azjpQ0WBtm+m5gU58mzF+2DCXY='; |
| 82 | + style-src 'self' 'unsafe-inline' cdn.ampproject.org/rtv/ fonts.googleapis.com assets-cdn.github.com github.githubassets.com; |
82 | 83 | worker-src 'self'; |
83 | 84 | block-all-mixed-content; |
84 | 85 | report-uri https://jarv.is/api/csp_wizard; |
|
89 | 90 | {"group":"default","max_age":604800,"endpoints":[{"url":"https://jarv.is/api/report"}],"include_subdomains":false}''' |
90 | 91 | # More generic security headers: |
91 | 92 | Feature-Policy = "accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none'" |
92 | | - Permissions-Policy = "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()" |
| 93 | + Permissions-Policy = "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=(), interest-cohort=()" |
93 | 94 | Referrer-Policy = "no-referrer-when-downgrade" |
94 | 95 | X-Content-Type-Options = "nosniff" |
95 | 96 | X-Frame-Options = "SAMEORIGIN" |
|
187 | 188 | from = "/twemoji/svg/*" |
188 | 189 | to = "/vendor/emoji/svg/:splat" |
189 | 190 | status = 301 |
| 191 | +[[redirects]] |
| 192 | + from = "/vendor/inter/*" |
| 193 | + to = "/vendor/fonts/:splat" |
| 194 | + status = 301 |
190 | 195 |
|
191 | 196 | # Moved these random sites/projects elsewhere (mostly GitHub Pages) to keep |
192 | 197 | # this repo and domain squeaky clean: |
|
0 commit comments