DirectAdmin - Access to font from origin 'https://site.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Версия от 06:57, 8 марта 2021; Admin iph (обсуждение | вклад) (Новая страница: «=== DirectAdmin - Access to font from origin 'https://site.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the request...»)
DirectAdmin - Access to font from origin 'https://site.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
Включить загрузку шрифтов с сайта для других доменов - нужно отредактировать конфиг nginx для домена через Administrator level в DirectAdmin -> custom-httpd configurations и добавить туда секцию:
location ~* \.(eot|ttf|woff|woff2)$ { add_header Access-Control-Allow-Origin *; }