Skip to content

Commit

Permalink
Updated CSP meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Apr 8, 2024
1 parent f88ef70 commit c5715a1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions pwa/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@conduction/components": "2.2.49",
"@conduction/theme": "1.1.29",
"@conduction/theme": "1.1.30",
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "6.5.2",
"@fortawesome/free-regular-svg-icons": "6.5.2",
Expand Down
10 changes: 6 additions & 4 deletions pwa/src/layout/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,21 @@ export const Head: React.FC = () => {
lang: currentLanguage,
}}
bodyAttributes={{
class: window.sessionStorage.getItem("NL_DESIGN_THEME_CLASSNAME"),
class: "zutphen-theme",
}}
>
<meta
httpEquiv="Content-Security-Policy"
content={`
content={`
default-src 'self';
base-uri 'self';
frame-src 'self';
frame-ancestors 'self';
img-src 'self' https://www.conduction.nl https://conduction.nl https://raw.githubusercontent.com/ConductionNL/woo-website-*;
img-src 'self' data: https://www.conduction.nl https://conduction.nl https://raw.githubusercontent.com/ConductionNL/ https://raw.githubusercontent.com/OpenCatalogi/ ;
form-action 'self';
connect-src 'self' https://api.gateway.commonground.nu https://raw.githubusercontent.com/ConductionNL/;
style-src 'self' 'unsafe-inline';
font-src * data:;
${location.hostname === "localhost" && "script-src 'self' 'unsafe-eval';"}
`}
></meta>
<title>{`Woo | ${window.sessionStorage.getItem("ORGANISATION_NAME")} | ${
Expand Down
2 changes: 1 addition & 1 deletion pwa/static/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ GATSBY_FAVICON_URL="data:image/svg+xml,%3Csvg id='Laag_1' data-name='Laag 1' xml

# Jumbotron
GATSBY_ORGANISATION_NAME=Conduction
GATSBY_JUMBOTRON_IMAGE_URL="data:image/svg+xml,%3Csvg id='Laag_1' data-name='Laag 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 259.81 300'%3E%3Cpath d='M129.9,0,0,75V225l129.9,75,129.91-75V75Zm96.8,205.89-96.8,55.88L33.1,205.89V94.11l96.8-55.89,96.8,55.89Z' style='fill:%234376fc'/%3E%3Cpolygon points='129.59 112.23 160.01 129.79 195.41 109.35 129.59 71.35 61.47 110.67 61.47 189.33 129.59 228.65 195.41 190.65 160.01 170.21 129.59 187.77 96.88 168.88 96.88 131.12 129.59 112.23' style='fill:%234376fc'/%3E%3C/svg%3E"
GATSBY_JUMBOTRON_IMAGE_URL=https://www.conduction.nl/wp-content/uploads/2021/07/cropped-Conduction_HOME_0000_afb1-1.png

# Footer
GATSBY_FOOTER_LOGO_HREF=https://conduction.nl/
Expand Down

0 comments on commit c5715a1

Please sign in to comment.