M
M
Maxim Nagaev2016-04-14 11:19:33
IIS
Maxim Nagaev, 2016-04-14 11:19:33

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

1 answer(s)
M
Maxim Nagaev, 2016-04-14
@mnagaev

The weight is easy

app.UseCors(builder => builder.WithOrigins("https://example.com").AllowAnyHeader());

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question