有沒有簡單的方法讓JSONP爲新的WCF Web API休息服務工作?C#WCF Web API + JSONP
我沒有運氣
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint name=""
helpEnabled="true"
automaticFormatSelectionEnabled="true"
defaultOutgoingResponseFormat ="Json"
crossDomainScriptAccessEnabled="true"/>
</webHttpEndpoint>
</standardEndpoints>
鏈接已更改爲:https://alexanderzeitler.com/articles/Look-Ma,-I-can-handle-JSON P-%28aka-Cross-Domain-JSON%29-with-WCF-Web-API-and-jQuery!/ – ForOhFor
@ForOhFor感謝提醒 - 更新了鏈接 –