前提・実現したいこと
Cloudflareを設定後、WEBフォントを読み込んだところエラーが発生しました。
対方法をご教授頂けませんでしょうか。
よろしくお願い申し上げます。
発生している問題・エラーメッセージ
Access to Font at 'https://cdn.artefact-online.com/skin/frontend/ultimo/fascinate/fonts/themeicons/ThemeIcons.ttf?387osh' from origin 'https://www.artefact-online.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.artefact-online.com' is therefore not allowed access
Nginxに追加したコード
location ~* .(eot|ttf|woff)$ { add_header Access-Control-Allow-Origin *; }
補足情報(FW/ツールのバージョンなど)
Web Server : Ngxin
CDN Server : Cloudflare
あなたの回答
tips
プレビュー