Skip to content

Commit

Permalink
fix security settings in meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsgstrabo committed Sep 26, 2024
1 parent d28a04c commit d7c9e93
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions public-site/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@ const config: Config = {
// image: 'img/docusaurus-social-card.jpg',

metadata:[
{name: 'Content-Security-Policy', content: `default-src 'self'; object-src 'none'; img-src 'self' data:; style-src 'self' https://cdn.eds.equinor.com/font/; font-src 'self' https://cdn.eds.equinor.com/font/; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content`},
{name: 'Permissions-Policy', content: 'none'},
{name: 'Cross-Origin-Resource-Policy', content: 'same-origin'},
{name: 'Referrer-Policy', content: 'no-referrer'},
{name: 'X-Content-Type-Options', content: 'nosniff'},
{name: 'X-Frame-Options', content: 'deny'},
{name: 'X-Permitted-Cross-Domain-Policies', content: 'none'},
{"http-equiv": 'Content-Security-Policy', content: `default-src 'self';script-src 'self' 'unsafe-eval'; object-src 'none'; img-src 'self' data:; style-src 'self' https://cdn.eds.equinor.com/font/; font-src 'self' https://cdn.eds.equinor.com/font/; upgrade-insecure-requests; block-all-mixed-content`},
{"http-equiv": 'Permissions-Policy', content: 'none'},
{"http-equiv": 'Cross-Origin-Resource-Policy', content: 'same-origin'},
{"http-equiv": 'Referrer-Policy', content: 'no-referrer'},
{"http-equiv": 'X-Content-Type-Options', content: 'nosniff'},
{"http-equiv": 'X-Permitted-Cross-Domain-Policies', content: 'none'},
],

navbar: {
Expand Down

0 comments on commit d7c9e93

Please sign in to comment.