C# WCF Web API + JSONP
问题 Is there an easy way to get JSONP working for the new WCF Web API rest services? I've tried this with no luck <standardEndpoints> <webHttpEndpoint> <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" defaultOutgoingResponseFormat ="Json" crossDomainScriptAccessEnabled="true"/> </webHttpEndpoint> </standardEndpoints> 回答1: https://alexanderzeitler.com/articles/Look-Ma,-I-can-handle-JSONP-%28aka-Cross-Domain-JSON%29-with-WCF-Web-API-and-jQuery!/ Update: Latest WCF