Skip to content

Commit

Permalink
Set CSP (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
MakotoE authored Nov 13, 2023
1 parent 7b77f0f commit fe2c8e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions _themes/piccolo_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
<script src="{{ pathto('_static/js/petite-vue.js', 1) }}"></script>

<script src="{{ pathto('_static/scripts.js', 1) }}"></script>

<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self' ajax.cloudflare.com 'unsafe-inline'; font-src 'self' https://fonts.gstatic.com; style-src 'self' https://fonts.googleapis.com 'unsafe-inline';"
/>
{% endblock %}

{%- block body_tag %}
Expand Down
2 changes: 0 additions & 2 deletions _themes/piccolo_theme/static/basic_mod.css
Original file line number Diff line number Diff line change
Expand Up @@ -1134,5 +1134,3 @@ div.button_nav_wrapper div.button_nav div.right a span.icon {
:root[data-mode=darkest] body[data-dark_mode_code_blocks=true] .highlight .il {
color: var(--grey);
}

/*# sourceMappingURL=basic_mod.css.map */

0 comments on commit fe2c8e4

Please sign in to comment.