Skip to content

Instantly share code, notes, and snippets.

@thiagoloureiro
Created May 12, 2018 18:56
Show Gist options
  • Save thiagoloureiro/f010f65bc7cd5c1697f8cfb1fe4381fd to your computer and use it in GitHub Desktop.
Save thiagoloureiro/f010f65bc7cd5c1697f8cfb1fe4381fd to your computer and use it in GitHub Desktop.
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