Hi,
I have generated the javascript and html code. Now, i had paste the code to in my customers sites.but it is static now. If i made any changes in the code then my customers are need to replace the code.
So i have created the Jquery ajax call in the generated html code, so every time page loads then ajax functions return the dynamic styles.
But i got the error Cross Domain issue in ajax call error method.
Can any one help me to solve this....

Nigel FernandesPosted Aug 7, 2017, 1:38 AM
Bryian TanPosted Aug 7, 2017, 1:13 AM
Web API - Enabling Cross-Origin Requests (CORS)
Technically, the Web API can be hosted together with the Web Application or separately. In this sample application, the Web API and Web Application are being decoupled. That being said, the Web and API application could be hosted on a different subdomain or domain. By design, the web browser security, same-origin policy, will prevents a web page from making AJAX requests to another domain or subdomain. However, this issue can be overcome by Enabling Cross-Origin Requests (CORS) to explicitly allow cross-origin requests from the Web to the API application.
Gnanavel SekarPosted Aug 6, 2017, 10:47 PM
Use JSONP
Gokhul VarmanPosted Aug 5, 2017, 10:07 AM
Midhun TpPosted Aug 5, 2017, 1:43 AM