enable-cors.org icon indicating copy to clipboard operation
enable-cors.org copied to clipboard

.NET sample is broken

Open ghost opened this issue 11 years ago • 3 comments

Hi all;

The sample at http://enable-cors.org/server_wcf.html does not work.

  1. Dictionary should be declared as Dictionary<string, string> (I think).
  2. The web.config node <crossOriginResourceSharingBehavior /> has required child nodes - no idea what they should be.
  3. It would be really helpful to make clear where in the web.config file each of those fragments goes. I took a wild guess on the <endpoint ... /> one.

thanks - dave

ghost avatar Jun 14 '13 16:06 ghost

Thanks for the feedback. Do you have an example of the working code? I'd rather update it based on someone's working code.

monsur avatar Jun 18 '13 02:06 monsur

Sorry, no. I don’t understand this well enough to figure out what is needed.

However, DarkCompiled at http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/thread/75c6d308-370b-4d30-8a5d-91f9667ea0e2 I think does know it well enough.

Thanks - dave

David Thielen - CTO/founder 303-499-2544 x1185 720-352-0676 (cell) www.windward.nethttp://www.windward.net World's coolest blog - Windward Wrocks!http://blogs.windward.net/davidt Follow me on Twitter – David At Windwardhttp://twitter.com/DavidAtWindward Proud sponsors of the International Collegiate Programming Championshipshttp://www.windward.net/Windward_International_Collegiate_Programming_Championships.php

From: Monsur Hossain [mailto:[email protected]] Sent: Monday, June 17, 2013 8:30 PM To: mhausenblas/enable-cors.org Cc: David Thielen Subject: Re: [enable-cors.org] .NET sample is broken (#42)

Thanks for the feedback. Do you have an example of the working code? I'd rather update it based on someone's working code.

— Reply to this email directly or view it on GitHubhttps://github.com/mhausenblas/enable-cors.org/issues/42#issuecomment-19587547.

ghost avatar Jun 18 '13 13:06 ghost

+1 for David's third comment. It would be really useful to know where those fields go, saving tons of lookup time. Thanks!

aedwill avatar Dec 04 '14 07:12 aedwill