No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '…' is therefore not allowed access

后端 未结 11 1739
醉话见心
醉话见心 2020-11-22 14:27

I\'m using .htaccess to rewrite urls and I used html base tag in order to make it work.

Now, when I try to make an ajax request I get the following error:

11条回答
  •  情歌与酒
    2020-11-22 14:27

    The workaround is to use a reverse proxy running on your 'source' host and forwarding to your target server, such as Fiddler:

    Link here: http://docs.telerik.com/fiddler/configure-fiddler/tasks/usefiddlerasreverseproxy

    Or an Apache Reverse proxy...

提交回复
热议问题