cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 Issue - No 'Access-Control-Allow-Origin' header

Surekha
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Google Groups

User Data Directory - The Chromium Projects

Hope this helps.

nalamabhiram
Explorer
0 Kudos

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.

Surekha
Participant
0 Kudos

Dear Nalam,

We have alredy done this setting still it's showing error.

It was working with mentioned setting by you till yesterday.Don't know why but it giving error from yesterday.

Do you have any clue for this ?

Thanks

Surekha

nalamabhiram
Explorer
0 Kudos

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.

Surekha
Participant
0 Kudos

Thanks Nalam,

We are using the same step as you mentioned .Still we are having issue .

And after starting chrome we are able to see that chrome is disabled the web security.

Still facing same issue.Guide us on the same.

Thanks

Surekha