跨源资源共享策略:无“访问控制允许源”
Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin
我是 运行 一个 WordPress 多站点博客,它正在使用 SSL ...我也在多站点网络上为各种子博客使用域映射,但映射的域不在 SSL 上...我我安装的字体有问题...它没有加载到映射的域上并且在控制台中我看到这个错误
Font from origin 'https://examplesite.example.com' has
been blocked from loading by Cross-Origin Resource Sharing policy: No
'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'http://examplesite.com' is therefore not
allowed access.
我没有启用任何类型的缓存服务(CloudFLare 或 MaxCDN)。我不确定这里有什么问题...期待您的回答...谢谢
好的...毕竟搜索对我有用...记住我是运行一个基于wordpress的多站点...
Header set Access-Control-Allow-Origin "*"
刚刚在下面添加了这个
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) [L]
RewriteRule ^(.*\.php)$ [L]
RewriteRule . index.php [L]
</IfModule>
我是 运行 一个 WordPress 多站点博客,它正在使用 SSL ...我也在多站点网络上为各种子博客使用域映射,但映射的域不在 SSL 上...我我安装的字体有问题...它没有加载到映射的域上并且在控制台中我看到这个错误
Font from origin 'https://examplesite.example.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://examplesite.com' is therefore not allowed access.
我没有启用任何类型的缓存服务(CloudFLare 或 MaxCDN)。我不确定这里有什么问题...期待您的回答...谢谢
好的...毕竟搜索对我有用...记住我是运行一个基于wordpress的多站点...
Header set Access-Control-Allow-Origin "*"
刚刚在下面添加了这个
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) [L]
RewriteRule ^(.*\.php)$ [L]
RewriteRule . index.php [L]
</IfModule>