Skip to Content
-1

How can I avoid this error? - Access-Control-Allow-Origin

Dec 01, 2017 at 04:52 PM

102

avatar image
Former Member
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Bilen Cekic Dec 02, 2017 at 12:05 PM
0

if you are using mac OS,

1) Close google chrome and make sure it is totally closed there should not be any light on the chrome icon (you can right click and exit)

2) Open terminal and write the below code;

open -a Google\ Chrome --args --disable-web-security --user-data-dir

Open your URL again and try.

edit : someone gave negative vote for my comment but ,

Dear Mr. Smart whoever gave this vote, above error is not HANA specific. Any XMLHttpRequest done by JS to a different domain that your page will give this error. Browser blocks for security reasons. Chrome solution is above, Safari is much more easier you can disable CORS by default. Windows solution won't be different.

Share
10 |10000 characters needed characters left characters exceeded
Masayuki Sekihara
Dec 05, 2017 at 12:58 AM
0

Hi Ryuji,

If you use a destination in your html5 app, I think Web Dispatcher handles it.

With direct call, take a look at some search result.

CORS (cross origin resource sharing) Issue Resolved

Regards,

Masa

Share
10 |10000 characters needed characters left characters exceeded