mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-28 10:56:26 +08:00
Replace obsoleted X-Frame-Options with frame-ancestors (#272)
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user