Skip to content

Commit

Permalink
Merge branch 'fer/1935' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandolucchesi committed Oct 17, 2023
2 parents 15db89a + 0dee368 commit a21a25e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions web/securityHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
]
Expand Down

0 comments on commit a21a25e

Please sign in to comment.