Replies: 1 comment 1 reply
-
So you have set of services all running on What OS? Do they all have https launch profiles? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hiya,
I'm trying to create an api gateway for 3 c# asp net core projects with Yarp, but i'm failing to do so,
I can see the following errors;
When posting some json to the monitor service;
When trying to access swagger:
I can access all services fine via the browser. It also seems that the minionservice and the monitorservice can access eachother without issue. Only the api gateway fails. I must be doing something wrong, but i'm not sure what.
AppHost
Gateway
If I change the routeconfig to use http rather than https, i can no reach swagger via the api gateway over https;
https://localhost:7156/api/monitor/swagger/index.html works
http://localhost:7156/api/monitor/swagger/index.html does not work
Posting some data however fails with the same error via http, but on https i see in the console:
Then curl respons shows:
What am i missing here?
EDIT:
Adding
.WithTransformUseOriginalHostHeader()
helps and i can now post requests and reach the swagger file over https, http fails, but i think i should enable https redirection there anyways. I feel a bit conflicted because i'm not sure that this would be the right way to go about this.Beta Was this translation helpful? Give feedback.
All reactions