cypress-io/cypress-documentation

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

cyril-ui-developer opened this issue · 1 comments

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

  • PC
  • Mac
  • iPhone
  • iPad
  • Android Phone
  • Android Tablet

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