This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(csp): add env var to disable csp requirement in dev (#640)
* feat(disable-csp): initial commit for disabling csp * feat(disable-csp): added test for not sending header if csp present * feat(disable-csp): created test cases for checkCsp function within onModuleLoad * feat(disable-csp): addressing suggestions, using runTime to validate updated tests * feat(disable-csp): replaced missingCsp value with undefined * feat(disable-csp): addressed suggestions * feat(disable-csp): trying to fix snapshot * feat(disable-csp): reverted snapshot, passing tests no updates on -- -u * feat(disable-csp): updated on module load setting * feat(disable-csp): new way of normalizing and validating the value of env var * feat(disable-csp): asserting as strings rather than booleans, added || empty string * feat(disable-csp): added documentation to enviornment variables * feat(disable-csp): added another test case for validateCspIsPresent * feat(disable-csp): cleaning up some sudgestions * feat(disable-csp): quick change to docs Co-authored-by: Jonny Adshead <JAdshead@users.noreply.github.com> Co-authored-by: Matthew Mallimo <matthew.mallimo@gmail.com>
- Loading branch information
1 parent
e44fecd
commit 7fc5e19
Showing
8 changed files
with
100 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters