-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: experimental CSP #13802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: experimental CSP #13802
Conversation
🦋 Changeset detectedLatest commit: 93abee5 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
CodSpeed Performance ReportMerging #13802 will not alter performanceComparing Summary
|
* chore: build hashes of scripts * chore: fix changes * chore: fix changes * chore: fix changes
Co-authored-by: florian-lefebvre <[email protected]>
Co-authored-by: ascorbic <[email protected]>
Co-authored-by: florian-lefebvre <[email protected]> Co-authored-by: ascorbic <[email protected]> fix CSP header, inject astro island script/style (#13687)
Co-authored-by: florian-lefebvre <[email protected]>
Co-authored-by: Florian Lefebvre <[email protected]>
Co-authored-by: Florian Lefebvre <[email protected]>
Co-authored-by: ascorbic <[email protected]> Co-authored-by: florian-lefebvre <[email protected]>
Co-authored-by: ascorbic <[email protected]>
Co-authored-by: Matt Kane <[email protected]>
astro
@astrojs/cloudflare
@astrojs/netlify
@astrojs/node
@astrojs/vercel
commit: |
Small feedback from me playing during the amazing API bash: Directives not requiring a valueThis is only a type issue, but some directives like For example, for I guess there are 2 cases here:
|
Changes
API Bash instructions
Check out this repository.
git clone https://github.com/ematipico/astro-csp cd astro-csp pnpm i
You can test CSP using the command
pnpm start
As explained in the
README.md
, you can't use thepnpm dev
command because of how Vite works.There are three pages:
/counter
, which uses a React component/islands
, which uses server Islands/transitions
(this seems borked, so I'll have to investigate why, but view transitions swap all thehead
elements, so maybe that's the reason)/index
, list of the the pervious pagesAll pages have custom
<style>
.Tasks
/counter
, try to use different client directives, for exampleclient:only="react"
/islands
, try to add props to the islands, or thefallback
or slots tooTesting
Docs