Add CORS for Canary and PTB

This commit is contained in:
Matojeje 2022-07-14 04:10:05 +02:00 committed by chylex
parent 33f5ab7cce
commit 1cf3e76644

View File

@ -16,7 +16,7 @@ namespace DHT.Server.Service {
services.AddCors(static cors => {
cors.AddDefaultPolicy(static builder => {
builder.WithOrigins("https://discord.com", "https://discordapp.com").AllowCredentials().AllowAnyMethod().AllowAnyHeader();
builder.WithOrigins("https://discord.com", "https://discordapp.com", "https://ptb.discord.com", "https://canary.discord.com").AllowCredentials().AllowAnyMethod().AllowAnyHeader();
});
});
}