Question

anyone have any idea how to enable CORS in the context of C# Backend Mobile Service being invoked by a JS function via the MS Azure Mobile Services JS library?? I get 405 and have looked at this link (https://gist.github.com/HenrikFrystykNielsen/6c934be6c6c8fa9e4bc8) which makes sense but no longer applies.

Mobile Services written in JS can be configured for CORS via the portal, but not C# backends.

thanks in advance

Was it helpful?

Solution

The answer in the gist still applies -- remember to load the CORS NuGet package as well.

Henrik

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top