Skip to content

Commit

Permalink
Add CSP to source (#287)
Browse files Browse the repository at this point in the history
* Add CSP to source

* Implement gruel's comment
  • Loading branch information
amoreauCoveo authored Oct 16, 2023
1 parent 78aaca7 commit 5204421
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions _includes/_content-security-policy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'report-sample' 'self'; style-src 'report-sample' 'self'; object-src 'none'; base-uri 'self'; connect-src 'self'; font-src 'self'; frame-src 'none'; img-src 'self'; manifest-src 'self'; media-src 'self'; worker-src 'none';" />
2 changes: 1 addition & 1 deletion _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.github.url | replace: 'http://', '//' }}/images/apple-touch-icon-72x72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" href="{{ site.github.url | replace: 'http://', '//' }}/images/apple-touch-icon-precomposed.png" />
<link href="{{ site.github.url | replace: 'http://', '//' }}/feed.xml" rel="alternate" type="application/rss+xml" title="{{ site.inc.title }}" />

{% include _content-security-policy.html %}
<meta property="og:site_name" content="{{ site.title }}" />
<meta name="twitter:card" content="summary" />

Expand Down

0 comments on commit 5204421

Please sign in to comment.