Skip to content

Conversation

@psd-coder
Copy link

Changes

Current SCP directives list misses a bunch from the spec Level 3 and even spec is a draft, those directives are widely available in browsers since 2016, and used here and there (script-src, style-scr). This PR just extends the list with missing ones:

Testing

Change is minor, so doesn't require much testing. I just build project end ensured that all necessary js/.d.ts files are updated (core/csp/config.d.ts, core/csp/config.js, core/config/schemas/base.d.ts, core/config/schemas/relative.d.ts).

Docs

Current docs don't list all available SCP directives, so I don't think it's required to update anything in the docs.

@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2025

🦋 Changeset detected

Latest commit: ad7a9db

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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Oct 29, 2025
@psd-coder psd-coder force-pushed the extend-csp-directives-list branch from ca119f0 to 3f89157 Compare October 29, 2025 01:31
@codspeed-hq
Copy link

codspeed-hq bot commented Oct 29, 2025

CodSpeed Performance Report

Merging #14635 will not alter performance

Comparing psd-coder:extend-csp-directives-list (ad7a9db) with main (9be54c7)

Summary

✅ 6 untouched

@psd-coder psd-coder force-pushed the extend-csp-directives-list branch from 3f89157 to ad7a9db Compare October 31, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant