Hello vu.dh@veek.vn,
Please try this,
app.Use((ctx, next) => { ctx.Request.Scheme = "https"; return next(ctx); });
This code needs to be added in "
public override void OnApplicationInitialization(ApplicationInitializationContext context)
" in this file -**AuthServerModule.cs
Please do let me know if this solution works.
Thanks, Anjali
The issue relates to Nginx configure, I fixed it, thanks for your support.
AuthServerModule
I did it but the issue is still existing.
Hello vu.dh@veek.vn,
Please add this block of code to
**HttpApiHostModule.cs
inpublic override void OnApplicationInitialization(ApplicationInitializationContext context)
app.Use((ctx, next) => { ctx.Request.Scheme = "https"; return next(); });
let me know if this helps you.
Thanks, Anjali
Hi Anjali, I did it but the problem is still existing.
Provide us with the following info:
I am using nginx to host api, authentication and angular within https but when I go to the angular website, I am getting the error message: https for all urls required. Also for urls received by discovery. Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation.
However, when I go to url https://xxx.well-known/openid-configuration some endpoints are show with http. My expectation is they should https.
How do I fix my issue?