Skip to content

Commit 9ba905d

Browse files
[core] Set caching headers for mui-frontend-public
1 parent d8b425e commit 9ba905d

File tree

1 file changed

+15
-0
lines changed
  • apps/code-infra-dashboard/public

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/assets/*.js
2+
Cache-Control: public, max-age=31536000, immutable
3+
4+
/*
5+
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
6+
# Block usage in iframes.
7+
X-Frame-Options: SAMEORIGIN
8+
# Force the browser to trust the Content-Type header
9+
# https://stackoverflow.com/questions/18337630/what-is-x-content-type-options-nosniff
10+
X-Content-Type-Options: nosniff
11+
X-XSS-Protection: 1; mode=block
12+
Referrer-Policy: strict-origin-when-cross-origin
13+
# TODO: progressively reduce the CSP scopes
14+
# Start with a wildcard, using https://github.com/mui/toolpad/blob/f4c4eb046b352e4fc00729c3bed605e671b040c4/packages/toolpad-studio/src/server/index.ts#L241
15+
Content-Security-Policy: default-src * data: mediastream: blob: filesystem: about: ws: wss: 'unsafe-eval' 'wasm-unsafe-eval' 'unsafe-inline'; script-src * data: blob: 'unsafe-inline' 'unsafe-eval'; script-src-elem * data: blob: 'unsafe-inline'; connect-src * data: blob: 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; media-src * data: blob: 'unsafe-inline'; frame-src * data: blob: ; style-src * data: blob: 'unsafe-inline'; font-src * data: blob: 'unsafe-inline'; frame-ancestors *;

0 commit comments

Comments
 (0)