cross domain posts to ASP.Net MVC app

后端 未结 5 1847
没有蜡笔的小新
没有蜡笔的小新 2021-01-04 15:30

I\'m developing an app where HTML and javascript chunks are delivered down to different clients. I\'m able to GET the html/javascript chunks by adding the following to web

5条回答
  •  轮回少年
    2021-01-04 15:46

    If you have control over what JS libraries you include, the best way is to use one of many cross-domain communication libs. The client (MVC app in your case) will have to have it configured to accept such requests, in most cases it means to have the same lib on accepting side.

    The best one I found so far is EasyXDM. Not many limitations and adjusts itself to browser capabilities. But you have to have it on both apps that talk to each other.

提交回复
热议问题