Access-Control-Allow-Origin header when Origin 'null' when trying to post data to a LOCAL application

我们两清 提交于 2019-12-06 06:06:30

Ok I solved the issue. I had to edit the bitcoinrpc file it's self to handle CORS.

http://www.html5rocks.com/en/tutorials/cors/

The above link gave me lots of helpful info on how to do that, in particular the fact that it had to be done in two stages.

There is the preflight request, and preflight response, then the actual request and actual response.

So I edited the bitcoinrpc.cpp file to handle this. If anyone wants to see exactly how I implemented it I'll link to the github source code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!