Created
March 6, 2012 13:31
-
-
Save tomaszkubacki/1986287 to your computer and use it in GitHub Desktop.
ServiceStack headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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