I'm trying to find a decent solution for cross-domain connections between WCF Data Services and datajs. JSONP works great for GET requests, but I can't POST anything. Does the WCF Data Services Toolkit support CORS out of the box? Are there any resources out there that show how to implement CORS for WCF Data Services?
Does the WCF Data Services Toolkit support CORS out of the box?
Asked Answered
WCF DS does not support CORS out of the box. I haven't been able to find any other out of the box solutions. It may be possible to add CORS support to a server by creating a message inspector for WCF.
Thank you for your answer. Can you perhaps provide a code sample? –
Impregnate
Feature request. In the meantime; yes it is possible to use a WCF message inspector. Information, Sample implementation by Fernando Rocha. –
Carrefour
© 2022 - 2024 — McMap. All rights reserved.