-
Notifications
You must be signed in to change notification settings - Fork 719
public origin is not found in options in v4.x #4631
Comments
We removed it. Use the forwarded headers instead. |
@hiwjcn To use forwarded headers:
In the
Then you can pass the headers |
thanks, and pls update to the docs in the break change section :) |
Why did you removed it? Is there another way to modify origin? It did currently break our server. So I had to downgrade it to build project. I know I can use forwarded headers. But it doesn't works. The only way to fix that issue is using PublicOrigin :( |
@leastprivilege Does the fix with forwarded headers also corrects the endpoints in the Discovery Endpoint output document, so that they are relative to custom path? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Here's temporary fix 😅 Just add a middleware before identity server to modify host and protocol properties of |
I configured in
and in
Still getting HTTP URLs in Discovery Document instead of HTTPS as expected. What other alternative do I have right now if this Startup configurations don't work? |
@CesarD This is how I solved that: app.Use((context, next) =>
{
context.Request.Protocol = "https";
context.Request.Host = new HostString("my-domain.com:12345");
// Only if you need it.
context.Request.PathBase = new PathString("/api/auth");
return next();
}); |
Thanks a lot @M0ns1gn0r !! :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The text was updated successfully, but these errors were encountered: