Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 为什么添加服务器别名失败?_Wordpress_Apache - Fatal编程技术网

Wordpress 为什么添加服务器别名失败?

Wordpress 为什么添加服务器别名失败?,wordpress,apache,Wordpress,Apache,我使用apache,我的网站有一个服务器名“yueai”,我想添加一个服务器别名“192.168.1.154”。但它在一些broswers上不起作用,在chrome上显示以下错误: Font from origin 'http://yueai' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on t

我使用apache,我的网站有一个服务器名“yueai”,我想添加一个服务器别名“192.168.1.154”。但它在一些broswers上不起作用,在chrome上显示以下错误:

Font from origin 'http://yueai' 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://192.168.1.154' is therefore not allowed access. 来自“源”的字体http://yueai'已被跨源资源阻止加载 共享策略:请求的资源上不存在“Access Control Allow Origin”标头。 起源'http://192.168.1.154因此,不允许访问。
此错误与ServerAlias无关,您遇到了CORS问题:另请查看此问题: