i have a domain loading content from another sub-domain.
both are on same hosting.
now the fonts are not loading properly on main domain ( on sub-domain it works fine )
on main domain it shows strict-origin-when-cross-origin Referrer Policy
how do we update this to Access-Control-Allow-Origin
i tried adding following code to main domain nginx and subdomain nginx template.(reference from vestacp forum)
Code: Select all
location ~* ^.+\.(ttf|otf|webp|woff|woff2)$ {
add_header Access-Control-Allow-Origin "*";
}