Skip to content

Commit

Permalink
Merge branch 'main' into nm-inject-canister-id
Browse files Browse the repository at this point in the history
  • Loading branch information
nmattia committed Feb 3, 2022
2 parents 4fc5e17 + 83a273d commit 8f0a91b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend-tests/backend-tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ validateSecurityHeaders resp = do
\window-placement=(),\
\xr-spatial-tracking=()"
validateHeaderMatches resp "Content-Security-Policy" "^default-src 'none';\
\connect-src 'self';\
\connect-src 'self' https://ic0.app;\
\img-src 'self' data:;\
\script-src 'sha256-[a-zA-Z0-9\\/=+]+' 'unsafe-inline' 'unsafe-eval' 'strict-dynamic' https:;\
\base-uri 'none';\
Expand Down
1 change: 0 additions & 1 deletion src/internet_identity/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use sha2::Digest;
use lazy_static::lazy_static;
use ic_cdk::api;


#[derive(Debug, PartialEq, Eq)]
pub enum ContentEncoding {
Identity,
Expand Down
4 changes: 2 additions & 2 deletions src/internet_identity/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,8 @@ fn security_headers() -> Vec<HeaderField> {
// infrastructure.
(
"Content-Security-Policy".to_string(),
format!("default-src 'none';\
connect-src 'self';\
"default-src 'none';\
connect-src 'self' https://ic0.app;\
img-src 'self' data:;\
script-src '{hash}' 'unsafe-inline' 'unsafe-eval' 'strict-dynamic' https:;\
base-uri 'none';\
Expand Down

0 comments on commit 8f0a91b

Please sign in to comment.