-
Notifications
You must be signed in to change notification settings - Fork 504
Replacement for PR1567 for context security policy #1656
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
Open
huss
wants to merge
22
commits into
OpenEnergyDashboard:development
Choose a base branch
from
huss:pr1567Updates
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9cd1cfd
Added Documentation and pushing the initial CSP tag as well.
CamClendenon 2cb4ac9
Merge branch 'development' of https://github.com/CamClendenon/OED int…
CamClendenon 8cdc2da
Updates to documentation based on Steve's reccomendation
CamClendenon 956e878
Grammar correction
CamClendenon 2e17a9c
Merge branch 'OpenEnergyDashboard:development' into development
CamClendenon fc1eb21
Current Attempt to Mend CSP rule (STILL IN PROGRESS)
CamClendenon 5824620
Semi Working Page with CSP rule, Still csp blocking some things
CamClendenon d45135d
Added new file to add Emotion/Cache which helps let the nonce be save…
CamClendenon ceab8a8
Merge branch 'OpenEnergyDashboard:development' into development
CamClendenon dfd102c
Merge remote-tracking branch 'origin/development' into pr/CamClendeno…
huss 4b4233a
formatting
huss f4c3206
Add MPL & formatting
huss 33aa0a5
spelling fix
huss 88d9f40
Updated changes in PR 1484 with improved
BrianRaymond800 6ac1a5b
Updated the CSP fix with improved comments
BrianRaymond800 28c2cd9
Improved the formatting to align with OED's
BrianRaymond800 79c378c
Merge remote-tracking branch 'origin/pr-update' into pr-changes
BrianRaymond800 519ffbf
Merge branch 'development' into pr-update
BrianRaymond800 282260c
formatting per comments
huss 984d91b
Merge branch 'development' into pr/huss/1656
huss 779dc7e
minor formatting
huss 378a56b
fix lost code in development merge
huss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| /* This Source Code Form is subject to the terms of the Mozilla Public | ||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
|
||
| import createCache from '@emotion/cache'; | ||
|
|
||
| //creates the nonce for the script being run | ||
| //the nonce works alongside the webpack_nonce and plotly_nonce to protect against unwanted scripts | ||
| const nonce = (document.querySelector('script[nonce]') as HTMLScriptElement | null)?.nonce; | ||
|
|
||
| const emotionCache = createCache({ | ||
| key: 'css', | ||
| nonce: nonce | ||
| }); | ||
|
|
||
| export default emotionCache; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was comments from PR #1567 that may still need to be considers:
@huss said on 2 Feb. 26:
and @BrianRaymond800 said on 10 Feb. 26:
I don't know if these lines are important or not, esp. given the console warnings.