fix: update CORS configuration to include additional origin
This commit is contained in:
parent
72b15eeff6
commit
8c781308e7
|
|
@ -1,12 +1,12 @@
|
|||
using System.Text;
|
||||
using DoliMiddlewareApi.Exceptions;
|
||||
using DoliMiddlewareApi.Services;
|
||||
using DoliMiddlewareApi.Services.Clients;
|
||||
using DoliMiddlewareApi.Services.Auth;
|
||||
using DoliMiddlewareApi.Services.Clients;
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using System.Text;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
using Microsoft.AspNetCore.Diagnostics;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
// =========================================
|
||||
// PROGRAM.CS - CONFIGURACIÓN Y DEPENDENCIAS
|
||||
|
|
@ -52,7 +52,10 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
|
|||
{
|
||||
options.AddPolicy("AllowVueApp",
|
||||
policy => policy
|
||||
.WithOrigins("http://localhost:3001", "http://localhost:3000")
|
||||
.WithOrigins(
|
||||
"http://localhost:3001",
|
||||
"http://localhost:3000",
|
||||
"http://localhost:5173")
|
||||
.AllowAnyMethod()
|
||||
.AllowAnyHeader()
|
||||
.AllowCredentials());
|
||||
|
|
|
|||
Loading…
Reference in New Issue