-
Notifications
You must be signed in to change notification settings - Fork 32
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
05_MM_MY #24
Open
MathisMontegnies
wants to merge
20
commits into
worldline:main
Choose a base branch
from
imm8:csp_patch
base: main
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
05_MM_MY #24
Conversation
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
The rules enforced allow script, image, plus style resources to be loaded from the same origin, and Websocket connection to be established similarly.
Modified to permit inline styles to be inserted on the page and fonts to be fetched from the same origin.
Part 1: Meta
To permit the Content-Security-Policy header sent by the server to be taken into consideration.
The correct rules are now automatically served from the server upon receiving an HTTP request.
Part 2: Server-side CSP
The added script appends an HTML formatted message to the page.
Get verbose information about blocked scripts and later whitelist them.
It whitelists a single SHA256 hash for the scripts that invokes document.write().
Part 3: CSP3
Timed annotation seems to be missing, a dependency for metrics-annotation has been added.
A class that acquires the random CSP nonce from the server using the API.
To remove Typescript errors, data is now of type any with no further checks.
Now it's one of the providers and dependency injection can be used afterwards.
Now it makes use of the CspConfig service and displays the CSP nonce on the debug console.
Removed an additional closing bracket.
Part 1: Server-side
Part 2: Client-side
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
CSP