ServiceStack/ServiceStack — Issue #60: ServiceStack support with Http OPTIONS method
Author: jkresner
Created: 2012-01-05 21:49:46+00:00
State: open

Hi, backbone.js / firefox 8.0 (or chome) combo is firing HttpMethod OPTIONS instead of POST/PUT which is not hitting my RestServiceBase.

I read this thread:

http://groups.google.com/group/servicestack/browse_thread/thread/c7d429f5fcf9dc53

And have added to AppHost the lines:

SetConfig(new EndpointHostConfig
{
GlobalResponseHeaders =
{
{ "Access-Control-Allow-Origin", "*" },
{ "Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS" },
},
});

But still nothing is happening and I'm getting back an empty response without any re-try.

Is there anything else I can do?