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

build: add support for custom CSP in webpack devServer #3903

Open
SuperITMan opened this issue Oct 7, 2024 · 0 comments
Open

build: add support for custom CSP in webpack devServer #3903

SuperITMan opened this issue Oct 7, 2024 · 0 comments
Labels
10.x Stark version 12.x Stark version comp: stark-build Stark Build type: feature

Comments

@SuperITMan
Copy link
Member

SuperITMan commented Oct 7, 2024

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[X] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/NationalBankBelgium/stark/blob/master/CONTRIBUTING.md#got-a-question-or-problem

Current behavior

As a user of stark-build, the developer can only edit the following CSP in the local dev server when executing ng serve:

  • connect-src
  • font-src
  • form-action

Expected behavior

Related to #70

The developer should be able to edit all the CSP in the dev server:

  • base-uri
  • child-src
  • connect-src
  • default-src
  • font-src
  • form-action
  • frame-src
  • frame-ancestors
  • img-src
  • manifest-src
  • media-src
  • object-src
  • sandbox
  • script-src
  • script-src-attr
  • script-src-elem
  • style-src
  • style-src-attr
  • style-src-elem
  • worker-src

And the default values for these CSP should be configured in stark-build.

Environment


Angular version: 7.x
Stark version: 10.x


Others:

@SuperITMan SuperITMan added comp: stark-build Stark Build type: feature 10.x Stark version 12.x Stark version labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.x Stark version 12.x Stark version comp: stark-build Stark Build type: feature
Projects
None yet
Development

No branches or pull requests

1 participant