clients icon indicating copy to clipboard operation
clients copied to clipboard

[SM-247] Fix csp rules not working for local dev

Open Hinton opened this issue 1 year ago • 0 comments

Type of change

- [x] Bug fix
- [ ] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Apparently the CSP rules broke a while back. The root cause seems to have been the newlines, which this PR removes by replacing them. At the same time I also remove the duplicate spaces.

We also had the semicolon in the wrong place, so I updated the pattern to put the semicolon before the next key, this helps us avoiding this issue in the future.

Before you submit

  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team

Hinton avatar Sep 22 '22 08:09 Hinton