Added .WithExposedHeaders("Authorization") in project.cs

This commit is contained in:
ashutosh.nehete 2025-10-10 18:14:23 +05:30
parent 2041f99ac5
commit 2a25bbae82

View File

@ -66,6 +66,7 @@ builder.Services.AddCors(options =>
policy.WithOrigins(allowedOrigins) policy.WithOrigins(allowedOrigins)
.AllowAnyMethod() .AllowAnyMethod()
.AllowAnyHeader() .AllowAnyHeader()
.WithExposedHeaders("Authorization")
.AllowCredentials(); .AllowCredentials();
}); });
}); });