D dyrer Basic Pleskian Nov 2, 2017 #1 Hello, how can I add this code to my nginx conf if ($filename ~* ^.*?\.(eot)|(ttf)|(woff)$){ add_header Access-Control-Allow-Origin *; }
Hello, how can I add this code to my nginx conf if ($filename ~* ^.*?\.(eot)|(ttf)|(woff)$){ add_header Access-Control-Allow-Origin *; }
IgorG Plesk addicted! Plesk Certified Professional Nov 2, 2017 #2 In Additional nginx directives try to use this rewritten code: location ~ \.(woff|woff2|ttf|eot)$ { add_header "Access-Control-Allow-Origin" "*"; expires 1M; access_log off; add_header Cache-Control "public"; } I hope it will help.
In Additional nginx directives try to use this rewritten code: location ~ \.(woff|woff2|ttf|eot)$ { add_header "Access-Control-Allow-Origin" "*"; expires 1M; access_log off; add_header Cache-Control "public"; } I hope it will help.