cross domain posts to ASP.Net MVC app

后端 未结 5 1840
没有蜡笔的小新
没有蜡笔的小新 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 15:48

    When you specified the crossDomain property to "true", the dataType property gets set as jsonp. You will need a way to handle this jsonp however on the MVC side. You might want to take a look at the following stackoverflow post: ASP.net MVC returning JSONP

提交回复
热议问题