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

Unable to add img-src, font-src and style-src to experimentalCspAllowList values #30580

Open
cyril-ui-developer opened this issue Nov 7, 2024 · 1 comment
Labels
experimental: csp allow list type: feature New feature that does not currently exist

Comments

@cyril-ui-developer
Copy link

Current behavior

I am unable add img-src, font-src and style-src to experimentalCspAllowList values in cypress.config.
I got the error: Expected experimentalCspAllowList to be an array including any of these values: ["script-src-elem", "script-src", "default-src", "form-action", "child-src", "frame-src"]..

Desired behavior

Allow img-src, font-src and style-src in experimentalCspAllowList values with no error

Test code to reproduce

Screenshot 2024-11-07 at 3 13 24 PM

Cypress Version

13.10.0

Node version

18

Operating System

Mac

Debug Logs

Your configFile at /Users/cajieh/Documents/projects/console/frontend/packages/operator-lifecycle-manager/integration-tests-cypress/cypress.config.js set an invalid value:

Expected experimentalCspAllowList to be an array including any of these values: ["script-src-elem", "script-src", "default-src", "form-action", "child-src", "frame-src"].

Instead the value was:

[
  "default-src",
  "script-src",
  "img-src"
]

Other

No response

@cyril-ui-developer
Copy link
Author

@jennifer-shehane Do you know when this will likely be available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental: csp allow list type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

2 participants