Skip to content

Commit

Permalink
Merge pull request #2135 from insectengine/CSP-AdobeAnalytics-adjustment
Browse files Browse the repository at this point in the history
Csp adobe analytics adjustment to fix data collection issue
  • Loading branch information
maxandersen authored Oct 17, 2024
2 parents 53e3612 + 656a67d commit 795d3a1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
24 changes: 24 additions & 0 deletions _includes/head-csp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<meta http-equiv="Content-Security-Policy" content="
default-src https://dpm.demdex.net https://route-default-test-mscherer-matamo.apps.ospo-osci.z3b1.p1.openshiftapps.com/ {{ site.search.host }};
script-src 'self' 'unsafe-inline' 'unsafe-eval'
{{ search_script }}
https://assets.adobedtm.com
js.bizographics.com
https://www.redhat.com
https://static.redhat.com
https://app.requestly.io/
jsonip.com
https://ajax.googleapis.com
https://use.fontawesome.com
https://app.mailjet.com
http://www.youtube.com
http://www.googleadservices.com
https://googleads.g.doubleclick.net
https://giscus.app
https://route-default-test-mscherer-matamo.apps.ospo-osci.z3b1.p1.openshiftapps.com/;
style-src 'self' https://fonts.googleapis.com https://use.fontawesome.com;
img-src 'self' * data:;
media-src 'self';
frame-src https://redhat.demdex.net https://www.youtube.com https://embed.restream.io https://app.mailjet.com http://xy0p2.mjt.lu https://mj.quarkus.io https://giscus.app; base-uri 'none'; object-src 'none'; form-action 'none';
font-src 'self' https://use.fontawesome.com https://fonts.gstatic.com;" />
3 changes: 1 addition & 2 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
<title>{{ page.title }}{{ page_title_version_suffix }}{% unless page_title_starts_with_quarkus or page_title_ends_with_quarkus %} - Quarkus{% endunless %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src https://dpm.demdex.net https://route-default-test-mscherer-matamo.apps.ospo-osci.z3b1.p1.openshiftapps.com/ {{ site.search.host }}; script-src 'self' 'unsafe-eval' {{ search_script }} 'sha256-ANpuoVzuSex6VhqpYgsG25OHWVA1I+F6aGU04LoI+5s=' 'sha256-ipy9P/3rZZW06mTLAR0EnXvxSNcnfSDPLDuh3kzbB1w=' 'sha256-+5qDxnbsqhFKZIIfofMhmVgNChsVrKoHUdaQ2EMs9aU=' 'sha256-9GX2EYB8fryOX9sALbWzZ7TVEZjRANod3mzT9mJK2A0=' 'sha256-RqEzO7A/IXS1BIUL4ZdgDljo0D5dRmBT22Oe7buZDT8=' 'sha256-OOu4endfeFMVqh4Q00S7byTqB4q1D6GextRjoysxGbg=' 'sha256-ioF25X2HdUdCugCVyJjxXVOma9G9P15kHxEDtSRNluE=' 'sha256-PeUeMwkRRyljEhJ9YfrDnY7Fs7YaSekiWO+UaJHD6P4=' 'sha256-/l3yGVvvIIlcKqPU1Ix7WzsjlDZYxSTUgNauy7yiunY=' js.bizographics.com https://www.redhat.com https://static.redhat.com assets.adobedtm.com https://app.requestly.io/ jsonip.com https://ajax.googleapis.com https://use.fontawesome.com https://app.mailjet.com http://www.youtube.com http://www.googleadservices.com https://googleads.g.doubleclick.net https://dpm.demdex.net https://giscus.app https://route-default-test-mscherer-matamo.apps.ospo-osci.z3b1.p1.openshiftapps.com/; style-src 'self' https://fonts.googleapis.com https://use.fontawesome.com; img-src 'self'
https://route-default-test-mscherer-matamo.apps.ospo-osci.z3b1.p1.openshiftapps.com/ * data:; media-src 'self'; frame-src https://redhat.demdex.net https://www.youtube.com https://embed.restream.io https://app.mailjet.com http://xy0p2.mjt.lu https://mj.quarkus.io https://giscus.app; base-uri 'none'; object-src 'none'; form-action 'none'; font-src 'self' https://use.fontawesome.com https://fonts.gstatic.com;" />
{% include head-csp.html %}
<script id="adobe_dtm" src="https://www.redhat.com/dtm.js" type="text/javascript"></script>
<script src="{{ '/assets/javascript/highlight.pack.js' | relative_url }}" type="text/javascript"></script>
<META HTTP-EQUIV='X-XSS-Protection' CONTENT="1; mode=block">
Expand Down

0 comments on commit 795d3a1

Please sign in to comment.