开发者

How can access and the origin policy in chrome as I'm not using a server

I want to change the origin policy in开发者_JS百科 chrome, how can I access it and modify it?

Many thanks


Are you talking about relaxing the same origin policy for file:/// urls? If so, I strongly recommend you set up a web server on your local machine and develop that way.

That said, you can run Chrome with this command line flag: --allow-file-access-from-files This will make all file:/// urls run in the same origin. The downside: any .html page you download and open could possibly open any file on your system and upload it to some server without you knowing. So you need to be more careful if you're doing this.

Besides file:/// urls you cannot change the same origin policy outside of APIs like CORS.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜