Created
May 12, 2018 18:56
-
-
Save thiagoloureiro/f010f65bc7cd5c1697f8cfb1fe4381fd to your computer and use it in GitHub Desktop.
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 Microsoft.AspNetCore.Builder; | |
using Microsoft.Extensions.DependencyInjection; | |
using Nancy.Owin; | |
namespace ArmAPI | |
{ | |
public class Startup | |
{ | |
public void Configure(IApplicationBuilder app) | |
{ | |
app.UseCors(option => | |
{ | |
option.AllowAnyOrigin(); | |
option.AllowAnyHeader(); | |
option.AllowAnyMethod(); | |
}); | |
app.UseOwin(x => x.UseNancy()); | |
} | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddCors(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment