1.在我输入我的服务器地址的时候出来的网页是这样的
2.但是当我用我的域名访问的时候就变成这样子了
百度之后我发现应该是所谓的跨域的问题,我用的ubuntu的服务器,web服务器是apache2,用网上提供的办法都不行,请问各位大牛该如何解决???
(index):1 Font from origin 'http://182.254.246.42' 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://www.futuinfi.cn' is therefore not allowed access.
/etc/apache2/httpd.conf
详见
打开
.htaccess
详见