<IfModule mod_headers.c> Header set Content-Security-Policy "○○-src 'self'; ○○-src https://foo.com;" </IfModule> <IfModule mod_headers.c> Header set Content-Security-Policy " \ default-src 'none'; \ script-src https://morisakimikiya.com/js/ \ https://ajax.googleapis.com/ajax/libs/jquery/ \ https://www.google.com/recaptcha/ \ 'sha256-*****'; \ font-src https://fonts.gstatic.com/; \ block-all-mixed-
![【.htaccess】CSP(Content Security Policy)を設定する方法|みきやのプログラミング部屋](https://cdn-ak-scissors.b.st-hatena.com/image/square/f92cd6b0693c27cbb126aafbcd2aa90b5e07badb/height=288;version=1;width=512/https%3A%2F%2Fprog.morisakimikiya.com%2Fwp-content%2Fuploads%2F2020%2F09%2Fapache.jpeg)