最近在做web开发,遇上跨域问题。
XMLHttpRequest cannot load http://*******************,
NO 'Access-Control-Allow-Origin' header is present on the requested resource .
解决办法:进入/etc/httpd/conf/httpd.conf
在最末行加入重定向ProxyPass /search/ http://*******************
最近在做web开发,遇上跨域问题。
XMLHttpRequest cannot load http://*******************,
NO 'Access-Control-Allow-Origin' header is present on the requested resource .
解决办法:进入/etc/httpd/conf/httpd.conf
在最末行加入重定向ProxyPass /search/ http://*******************