ThreeMammals / Ocelot

.NET API Gateway
https://www.nuget.org/packages/Ocelot
MIT License
8.4k stars 1.64k forks source link

How to call the Ocelot API Gateway (using dot net core) from angular 7 #1029

Closed Ramakrish closed 8 months ago

Ramakrish commented 5 years ago

Hi Team

We are implemented the Ocelot in dot net core project..

We are created the reroutes for two different kind of API's.

While running the Ocelot with reroutes in my browsers it provide the expected result.

We need to call the same Ocelot API gateway reroute URL from angular 7 project.

Is it possible to call Ocelot APIGateway URL from angular 7?? Kindly help me on that..

Loongle commented 5 years ago

you need configuration your stratup. additional cors configuration

wast commented 5 years ago

Yes you can. Read documentation .

Close this. It's not an issue. Use Stack Overflow if you can't manage to do it.

raman-m commented 8 months ago

Hi @Ramakrish! Hare Krishna! Hare Rama! :smile: Forever!

Is it possible to call Ocelot API gateway URL from angular 7??

Angular is front-end framework. Any front-end framework requires to deploy special type of BFF gateway which has special configuration and setup. In general Ocelot is good choice to deploy BFF gateway instance: we support main protocols: http + https, ws + wss. We have some problems with OPTIONS and CORS policies, see #799. But we believe, experienced ASP.NET developer can solve these problems.