Skip to content

Commit

Permalink
remove csp
Browse files Browse the repository at this point in the history
  • Loading branch information
dknecht committed Dec 11, 2023
1 parent f5f436b commit 199c5cd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions _includes/layouts/base.njk
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<!doctype html>
<html lang="en"
domain="{{ metadata.domain }}"
{% if googleanalytics %}
ga-id="{{ googleanalytics }}"
{% endif %}
>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="{{ csp.regular | safe }}">
{% if isdevelopment %}
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
{% else %}
Expand Down Expand Up @@ -47,9 +43,6 @@
<script async defer src="{{ "/js/min.js" | addHash }}"
{% if webvitals %}data-cwv-src="{{ "/js/web-vitals.js" | addHash }}"{% endif %}>
</script>
{% if googleanalytics %}
<script async defer src="{{ "/js/cached.js" | addHash }}"></script>
{% endif %}
<!-- Notably iOS UAs also contain Mac OS X -->
<script csp-hash>if (/Mac OS X/.test(navigator.userAgent))document.documentElement.classList.add('apple')
</script>
Expand All @@ -70,12 +63,6 @@
<h1>{{ title }}</h1>
{% block extraArticleHeader %}{% endblock %}
<dialog id="message"></dialog>
{% if googleanalytics %}
<noscript>
<img src="/.netlify/functions/ga?v=1&_v=j83&t=pageview&dr=https%3A%2F%2Fno-script.com&_s=1&dh={{ metadata.domain | encodeURIComponent }}&dp={{ page.url | encodeURIComponent }}&ul=en-us&de=UTF-8&dt={{title|encodeURIComponent}}&tid={{googleanalytics}}" width="1" height="1"
style="display:none" alt="">
</noscript>
{% endif %}
</header>

<main>
Expand Down

0 comments on commit 199c5cd

Please sign in to comment.