AnsweredAssumed Answered

XMLHttpRequest for rest service required CORS

Question asked by bapak6871 on Jan 22, 2018

Hi.

 

I have manage to extend the QUERY WIDGET to add custom reports on the query result. The widget works fine before  until recently when it start to give error with Cross Origin issue.

 

the error message says :

 

XMLHttpRequest for https://my_server_address/server/rest/services/.../MapServer/export? required Cross Origin Resorces Sharing (CORS)

 

Please help . what to do ?

 

I have setup a proxy server but the same error message still appeared.

 

this my proxy.config setting .

 

 

this my webapp setting

 

i'm sure i have miss some steps here . any help are much appreciated .

 

 

thanks in advance

 

zamzam

Outcomes