• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Resolved nginx configuration

dyrer

Basic Pleskian
Hello,
how can I add this code to my nginx conf


if ($filename ~* ^.*?\.(eot)|(ttf)|(woff)$){
add_header Access-Control-Allow-Origin *;
}
 
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.
 
Back
Top