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

Angular 11 to 12 upgrade Breaks Styling on Test #22542

Closed
ThisThato opened this issue Jan 21, 2022 · 2 comments
Closed

Angular 11 to 12 upgrade Breaks Styling on Test #22542

ThisThato opened this issue Jan 21, 2022 · 2 comments

Comments

@ThisThato
Copy link

ThisThato commented Jan 21, 2022

I recently upgrade an angular application from version 11 to 12. It works locally but it breaks the styling on test and it shows the a CSP error.
I attached screenshots of my angular.json and CSP values.
The application also uses angular material

image
<add name="Content-Security-Policy" value="default-src 'self'; style-src 'self' 'unsafe-inline' 'unsafe-hashes' 'unsafe-eval'; script-src 'self' 'unsafe-inline'; style-src-elem 'self' 'unsafe-inline' 'unsafe-hashes' 'unsafe-eval';/>

image

@alan-agius4
Copy link
Collaborator

Duplicate of #20864

@alan-agius4 alan-agius4 marked this as a duplicate of #20864 Jan 21, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants