0

I am trying to fix CORS issue in Chromium Portable. Added

 --allow-file-access-from-files --disable-web-security 

Works for the older versions but not for the latest one. Will not be able to modify anything on the server side and also cannot use jsonp.

The error I am getting in the console is :

jquery.min.js:4 XMLHttpRequest cannot load https://website/heaarc/rest/HaAccess/hello. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access. The response had HTTP status code 401.

Is there any other way to fix this?

Any help would be greatly appreciated.

4

1 回答 1

0

最后通过为铬添加更新标志解决了这个问题。

旗帜是:

-disable-web-security -user-data-dir

另外为了防止任何警告消息和弹出窗口,我使用了这个:

-test-type
于 2016-04-25T20:39:24.043 回答