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....

Midhun TpRank #388 · 6.5K reputationPosted Aug 4, 2017, 9:43 PM EDT
Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 5, 2017, 6:07 AM EDT
Gnanavel SekarRank #333 · 7.5K reputationPosted Aug 6, 2017, 6:47 PM EDT
Use JSONP
Bryian TanRank #396 · 6.3K reputationPosted Aug 6, 2017, 9:13 PM EDT
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.
Nigel FernandesRank #753 · 3.1K reputationPosted Aug 6, 2017, 9:38 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts