Skip to content
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

Allow frame ancestors #966

Merged
merged 3 commits into from
Apr 3, 2024
Merged

Allow frame ancestors #966

merged 3 commits into from
Apr 3, 2024

Conversation

daniel-ac-martin
Copy link
Owner

Allows the user to provide a frameAncestors option to the engine, which follows the Content Security Policy format. An equivalent environment variable has also been created.

Examples

Only allow us to put our pages in frames:

FRAME_ANCESTORS="'self'"

Note: Pay attention to the single quotes!

Also allow example.com and its subdomains:

FRAME_ANCESTORS="'self',*example.com"

Allow all frames (not advised):

FRAME_ANCESTORS="*"

To disallow frames (default):

FRAME_ANCESTORS="'none'"

We disallow frames by default in order to prevent click jacking.

Partially addresses: #950

Adds a option to provide a list of CSP frame-ancestors. By default we do
not allow any in order to prevent click jacking.
Adds an option to provide a list of CSP frame-ancestors. By default we do
not allow any in order to prevent click jacking.
Copy link

cypress bot commented Apr 3, 2024

Passing run #4843 ↗︎

0 1 0 0 Flakiness 0

Details:

plop-pack: Take advantage of frameAncestors option
Project: NotGovUK Commit: 1781906aef
Status: Passed Duration: 12:08 💡
Started: Apr 3, 2024 4:21 PM Ended: Apr 3, 2024 4:34 PM

Review all test suite changes for PR #966 ↗︎

@daniel-ac-martin daniel-ac-martin merged commit f834b63 into master Apr 3, 2024
22 of 27 checks passed
@daniel-ac-martin daniel-ac-martin deleted the allow-frame-ancestors branch April 3, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant