From 0dee368ecba76a6bed8f52c68d7aea6d5485c673 Mon Sep 17 00:00:00 2001 From: Fernando Lucchesi Date: Tue, 17 Oct 2023 19:34:29 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=97=EF=B8=8F=20Experiment=20fix=20for=20C?= =?UTF-8?q?ORS=20#1935?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/securityHeaders.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/web/securityHeaders.js b/web/securityHeaders.js index 45e2963ff..67db165ce 100644 --- a/web/securityHeaders.js +++ b/web/securityHeaders.js @@ -6,16 +6,13 @@ import { dataset } from './languages.js' const isProduction = process.env.NODE_ENV === 'production' -const envs = ['dev', 'preprod', 'prod', 'test'] +const envs = ['preprod', 'prod'] const localUrl = process.env.NODE_ENV === 'development' ? 'http://localhost:3333' : '' const globalUrl = dataset === 'global' ? 'https://equinor.sanity.studio' : '' const secretUrl = dataset === 'secret' ? 'https://equinor-restricted.sanity.studio' : '' -const studioUrlsOldCluster = envs.map((env) => `https://studio-${dataset}-energyvision-${env}.radix.equinor.com/`) -const studioUrls = envs.map((env) => `https://studio-${dataset}-equinor-web-sites-${env}.c2.radix.equinor.com/`) +const studioUrls = envs.map((env) => `https://studio-${dataset}-equinor-web-sites-${env}.c2.radix.equinor.com`) const studioV3Url = 'http://studiov3-global-development-equinor-web-sites-dev.c2.radix.equinor.com' -const xFrameUrls = [localUrl, ...studioUrlsOldCluster, ...studioUrls, studioV3Url, globalUrl, secretUrl] - .filter((e) => e) - .join(' ') +const xFrameUrls = [localUrl, ...studioUrls, studioV3Url, globalUrl, secretUrl].filter((e) => e).join(' ') const edsCdnUrl = 'https://cdn.eds.equinor.com ' const iframeSrcs = [ 'https://consentcdn.cookiebot.com', @@ -29,7 +26,7 @@ const iframeSrcs = [ 'https://vds.issgovernance.com', 'https://eac.plaii.no', 'https://livestream.com', - dataset === 'global-development' && 'https://careers.peopleclick.eu.com/', + dataset === 'global-development' && 'https://careers.peopleclick.eu.com', 'https://h61q9gi9.api.sanity.io', 'http://localhost:3333', ]