Skip to content

Commit

Permalink
Merge pull request #296 from ConductionNL/feature/BEHEER-2286/CSP
Browse files Browse the repository at this point in the history
feature/BEHEER-2286/CSP
  • Loading branch information
remko48 authored Apr 18, 2024
2 parents 816d1cb + 6b4b93b commit 23435a4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pwa/src/layout/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Head: React.FC = () => {
frame-src 'self';
img-src 'self' data: https://raw.githubusercontent.com/ConductionNL/;
form-action 'self';
connect-src 'self' https://api.gateway.commonground.nu https://api.common-gateway.commonground.nu https://raw.githubusercontent.com/ConductionNL/;
connect-src 'self' https://api.gateway.commonground.nu https://api.common-gateway.commonground.nu https://raw.githubusercontent.com/ConductionNL/ https://api.github.com;
style-src 'self' 'unsafe-inline';
font-src * data:;
${location.hostname === "localhost" && "script-src 'self' 'unsafe-eval';"}
Expand Down
16 changes: 16 additions & 0 deletions pwa/src/services/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import Zutphen from "./../../static/configFiles/zutphen.json";
import Sloterburg from "./../../static/configFiles/sloterburg.json";
import Gouda from "./../../static/configFiles/gouda.json";
import Zuiddrecht from "./../../static/configFiles/zuiddrecht.json";
import GooiseMeren from "./../../static/configFiles/gooise-meren.json";
import Roosendaal from "./../../static/configFiles/roosendaal.json";
import { TGroupedSelectOption } from "@conduction/components/lib/components/formFields/select/select";

export const getConfig = (themeOrDomainName: string): Record<string, any> | undefined => {
Expand Down Expand Up @@ -103,6 +105,20 @@ export const getConfig = (themeOrDomainName: string): Record<string, any> | unde
case "acceptatie-open.gouda.nl":
return Gouda;

case "gooisemeren-theme":
case "open.gooisemeren.nl":
case "gooisemeren.openwoo.app":
case "gooisemeren.koophulpje.nl":
case "acceptatie-open.gooisemeren.nl":
return GooiseMeren;

case "roosendaal-theme":
case "open.roosendaal.nl":
case "roosendaal.openwoo.app":
case "roosendaal.koophulpje.nl":
case "acceptatie-open.roosendaal.nl":
return Roosendaal;

case "openwoo.app":
case "koophulpje.nl":
case "open-webconcept-theme":
Expand Down

0 comments on commit 23435a4

Please sign in to comment.