mirror of
https://github.com/digitalocean/nginxconfig.io
synced 2024-11-10 04:24:12 +00:00
Replace obsoleted X-Frame-Options with frame-ancestors (#272)
This commit is contained in:
parent
c261892de4
commit
b1b989f172
2 changed files with 1 additions and 2 deletions
|
@ -30,7 +30,6 @@ export default (domains, global) => {
|
|||
const config = [];
|
||||
|
||||
config.push(['# security headers', '']);
|
||||
config.push(['add_header X-Frame-Options', '"SAMEORIGIN" always']);
|
||||
config.push(['add_header X-XSS-Protection', '"1; mode=block" always']);
|
||||
config.push(['add_header X-Content-Type-Options', '"nosniff" always']);
|
||||
config.push(['add_header Referrer-Policy', `"${global.security.referrerPolicy.computed}" always`]);
|
||||
|
|
|
@ -161,7 +161,7 @@ THE SOFTWARE.
|
|||
enabled: true,
|
||||
},
|
||||
contentSecurityPolicy: {
|
||||
default: 'default-src \'self\' http: https: data: blob: \'unsafe-inline\'',
|
||||
default: 'default-src \'self\' http: https: data: blob: \'unsafe-inline\'; frame-ancestors \'self\';',
|
||||
enabled: true,
|
||||
},
|
||||
serverTokens: {
|
||||
|
|
Loading…
Reference in a new issue