Created
June 25, 2021 05:52
-
-
Save gistlyn/5c6aa321280ff40479ef241893057f06 to your computer and use it in GitHub Desktop.
Configure CORS
This file contains hidden or 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
using ServiceStack; | |
namespace MyApp | |
{ | |
public class ConfigureCors : IConfigureAppHost | |
{ | |
public void Configure(IAppHost appHost) | |
{ | |
appHost.Plugins.Add(new CorsFeature()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment