mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
added new origins
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Govor.API.Common.Extensions;
|
using Govor.API.Common.Extensions;
|
||||||
using Govor.API.Hubs;
|
using Govor.API.Hubs;
|
||||||
using Govor.Application.Services.Authentication;
|
using Govor.Application.Services.Authentication;
|
||||||
@@ -19,7 +19,12 @@ builder.Services.AddCors(options =>
|
|||||||
{
|
{
|
||||||
options.AddPolicy("AllowFrontend", policy =>
|
options.AddPolicy("AllowFrontend", policy =>
|
||||||
{
|
{
|
||||||
policy.WithOrigins("https://localhost:7155", "http://localhost:7155")
|
policy.WithOrigins(
|
||||||
|
"https://localhost:7155",
|
||||||
|
"http://localhost:7155",
|
||||||
|
"https://govor-team-govor-8ce1.twc1.net",
|
||||||
|
"http://govor-team-govor-8ce1.twc1.net"
|
||||||
|
)
|
||||||
.AllowAnyHeader()
|
.AllowAnyHeader()
|
||||||
.AllowAnyMethod()
|
.AllowAnyMethod()
|
||||||
.AllowCredentials();
|
.AllowCredentials();
|
||||||
|
|||||||
Reference in New Issue
Block a user