Skip to content

Commit

Permalink
fix: Remove workaround to allow Google Fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
elwinschmitz committed Jan 9, 2025
1 parent f00c118 commit 408da1f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy_staging_portalicious.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
NG_LOCALES: 'en-GB,nl'
NG_DEFAULT_LOCALE: 'en-GB'
NG_URL_121_SERVICE_API: 'https://staging.121.global/api'
USE_GOOGLE_FONTS: 'for-now'
USE_IN_TWILIO_FLEX_IFRAME: ${{ vars.USE_IN_TWILIO_FLEX_IFRAME }}
USE_POWERBI_DASHBOARDS: ${{ vars.USE_POWERBI_DASHBOARDS }}
USE_SSO_AZURE_ENTRA: ${{ vars.USE_SSO_AZURE_ENTRA }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy_test_portalicious.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
NG_LOCALES: 'en-GB,nl'
NG_DEFAULT_LOCALE: 'en-GB'
NG_URL_121_SERVICE_API: 'https://test.121.global/api'
USE_GOOGLE_FONTS: 'for-now'
USE_IN_TWILIO_FLEX_IFRAME: ${{ vars.USE_IN_TWILIO_FLEX_IFRAME }}
USE_POWERBI_DASHBOARDS: ${{ vars.USE_POWERBI_DASHBOARDS }}
USE_SSO_AZURE_ENTRA: ${{ vars.USE_SSO_AZURE_ENTRA }}
Expand Down
16 changes: 0 additions & 16 deletions interfaces/Portalicious/_build-deployment-configuration.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,6 @@ if (process.env.USE_POWERBI_DASHBOARDS === 'true') {
]);
}

// Feature: Google Fonts (TODO: To Be Removed before launch! AB#31610)
if (process.env.USE_GOOGLE_FONTS === 'for-now') {
console.info('✅ Allow loading Google Fonts');

let styleSrc = contentSecurityPolicy.get('style-src');
contentSecurityPolicy.set('style-src', [
...styleSrc,
`https://fonts.googleapis.com`,
]);

contentSecurityPolicy.set('font-src', [
`'self'`,
`https://fonts.gstatic.com`,
]);
}

// Construct the Content-Security-Policy header-value
const contentSecurityPolicyValue = Array.from(contentSecurityPolicy)
.map((directive) => {
Expand Down

0 comments on commit 408da1f

Please sign in to comment.