cypress-io / cypress-documentation

Cypress Documentation for the Cypress App, API, Cypress Cloud, UI Coverage and Cypress Accessibility.
https://docs.cypress.io
MIT License
948 stars 1.05k forks source link

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

Closed cyril-ui-developer closed 5 hours ago

cyril-ui-developer commented 5 hours ago

Description

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"]..

URL of Issue(s)

https://docs.cypress.io/app/references/experiments#Experimental-CSP-Allow-List

Steps to replicate

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Browser

No response

Device

Additional Information

Our CSP implementation including img-src, font-src and style-src, but these are not valid for to experimentalCspAllowList values. Is this intentional, and is there a workaround for this?

Screenshot 2024-11-07 at 3 13 24 PM
cyril-ui-developer commented 5 hours ago

Closed this in favor of https://github.com/cypress-io/cypress/issues/30580