allow origins in votes
This commit is contained in:
parent
177257da12
commit
28f21bae12
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@ namespace EllieBot.VotesApi
|
||||||
opts.AddPolicy(Policies.DiscordbotlistAuth,
|
opts.AddPolicy(Policies.DiscordbotlistAuth,
|
||||||
static policy => policy.RequireClaim(AuthHandler.DiscordbotlistClaim));
|
static policy => policy.RequireClaim(AuthHandler.DiscordbotlistClaim));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
services.AddCors(x => x.AddDefaultPolicy(cpb =>
|
||||||
|
cpb.AllowAnyHeader()
|
||||||
|
.AllowAnyMethod()
|
||||||
|
.AllowAnyOrigin()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue