'http://localhost:3000/auth/validate-reset-password-token/') from origin 'http://frontend:4200' has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response.
если Asp net проект то вот services.AddCors(); и app.UseCors( options => options //.WithOrigins(appSettings.AllowedOrigins) .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader() .AllowCredentials() );
Обсуждают сегодня