Skip to content

Commit

Permalink
build: Add CSP and HSTS headers for Cloudflare Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 2, 2023
1 parent 7cfc7bd commit 7019391
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
git clone https://github.com/open-contracting/ocds-extensions-translations.git
ocdsextensionregistry generate-data-file --locale-dir ocds-extensions-translations/locale > extension_explorer/data/extensions.json
python freeze.py
echo "/*
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https:; style-src 'self' 'unsafe-inline' https://use.fontawesome.com; img-src 'self' data: https:; font-src 'self' https://use.fontawesome.com https://use.typekit.net; object-src 'none'; worker-src 'none';
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload" > extension_explorer/build/_headers
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 7019391

Please sign in to comment.