on 03-22-2016 12:42 PM
Dear Expert,
We are facing Issue in Chome of "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:50946' is therefore not allowed access. The response had HTTP status code 405."
While testing the Application.
Please guide us on the same.
Thanks
Surekha
If you are using chrome version above 47, then try the below option.
chrome.exe --disable-web-security --user-data-dir
Read the latest change in chrome update.
User Data Directory - The Chromium Projects
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Load the application after disabling the web security.
Steps:
1.kill all instances of chrome.
2.create desktop shortcut for chrome.
3.right click on chrome desktop shortcut->properties and append " --disable-web-security
" in target section
after appending it looks like below
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security
note: there should be a space after chrome.exe.
After apply and save ,Use the chrome through the short cut.
you will receive a warning regarding changs.
Attaching the screens for reference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Surekha,
Even I faced such problem.
Suddenly this error occurs even after disabling web security.
Just Kill all instances of chrome and try
else try to restart the system.
I am pretty sure this resolves.
make sure you are using the correct chrome which you disabled the web security and see that warning message regrading web security is displayed when you open the chrome.
Regards,
Abhiram.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.