Skip to content

Instantly share code, notes, and snippets.

@tomaszkubacki
Created March 6, 2012 13:31
Show Gist options
  • Save tomaszkubacki/1986287 to your computer and use it in GitHub Desktop.
Save tomaszkubacki/1986287 to your computer and use it in GitHub Desktop.
ServiceStack headers
public override void Configure(Container container)
{
SetConfig(new EndpointHostConfig{
GlobalResponseHeaders = {
{ "Access-Control-Allow-Origin", "*" },
{ "Access-Control-Allow-Headers", "Content-Type" },
{ "Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS" },
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment