Remote scripts better managed, should not send private information

This commit is contained in:
echarp 2023-05-04 16:30:59 +02:00
parent da571f6da7
commit cf51cbe2ae
2 changed files with 7 additions and 4 deletions

View File

@ -31,6 +31,8 @@
</Directory>
CustomLog /var/simpleWeb/log/apache/acoeur.log combined
Header always set Access-Control-Allow-Origin "cdnjs.cloudflare.com"
</VirtualHost>
<VirtualHost *:80>

View File

@ -1,13 +1,14 @@
<script>const file = '{{ .File }}'</script>
<script defer
src="https://unpkg.com/tinymce@6.3.1/tinymce.js"
referrerpolicy="origin"></script>
src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/6.4.2/tinymce.min.js"
integrity="sha512-sWydClczl0KPyMWlARx1JaxJo2upoMYb9oh5IHwudGfICJ/8qaCyqhNTP5aa9Xx0aCRBwh71eZchgz0a4unoyQ==">
</script>
<script defer
src="https://cdn.jsdelivr.net/npm/easyqrcodejs@4.4.13/dist/easy.qrcode.min.js"
integrity="sha256-ysnj5Mp9adRzpXyhbGW2YTdUSpdapignH3Z57bMq6G8="
crossorigin="anonymous"></script>
integrity="sha256-ysnj5Mp9adRzpXyhbGW2YTdUSpdapignH3Z57bMq6G8=">
</script>
{{ with resources.Get "js/misc.js" | minify | fingerprint }}
<script defer src="{{ .Permalink }}"></script>