Mohi
Mohi
CC#
Created by Mohi on 12/28/2024 in #help
✅ jwt token
Guy I fixed that:) I made all the versions related to jwt, identify core to the same number and added clean = true to cprojfile.
26 replies
CC#
Created by Mohi on 12/28/2024 in #help
✅ jwt token
nope
26 replies
CC#
Created by Mohi on 12/28/2024 in #help
✅ jwt token
No description
26 replies
CC#
Created by Mohi on 12/28/2024 in #help
✅ jwt token
Thanks for answering @✿ Scarlet ✿ , actually I already define UseCors and it is woking on other endpoints which don't have Authorize tag before them services.AddCors(options => { options.AddPolicy( "AllowSpecificOrigins", builder => { var corsOrigins = configuration .GetSection("CORS:AllowedOrigins") .Get<string[]>(); if (corsOrigins is null || corsOrigins.Length == 0) { throw new InvalidOperationException( "CORS:AllowedOrigins is not configured properly." ); } builder .WithOrigins(corsOrigins) .AllowAnyMethod() .AllowAnyHeader() .AllowCredentials(); } ); });
26 replies
CC#
Created by Cyan on 12/25/2022 in #help
❔ JWT token claims not working anymore after deploying application to Azure web app.
Hi there, facing the same problem, everything works fine on dev server but when depoly on Azure on test env, recieve CORS errors on the endpoints of controllers used [Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)] won't work anymore. Is there any updates?
3 replies