Answer the question
In order to leave comments, you need to log in
Reverse Proxy IIS, how to set up a proxy for two sites to work with the same API?
Hello, there are two sites on angular https://cp.example.com and https://example.com
There is an api for them localhost:5000/api, how to make it so that you can send http requests to the api ?
Hanging api on https://example.com:5000 or https://api.example.com/v1 is not a problem if it is not possible from localhost
Answer the question
In order to leave comments, you need to log in
The weight is easy
app.UseCors(builder => builder.WithOrigins("https://example.com").AllowAnyHeader());
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question