Skip to content

Commit

Permalink
Replace obsoleted X-Frame-Options with frame-ancestors (digitalocean#272
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jcgoette authored May 25, 2021
1 parent c261892 commit b1b989f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/nginxconfig/generators/conf/security.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`]);
Expand Down
2 changes: 1 addition & 1 deletion src/nginxconfig/templates/global_sections/security.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit b1b989f

Please sign in to comment.