ThreeMammals / Ocelot

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

how to support cors? #102

Closed hanyubao closed 7 years ago

hanyubao commented 7 years ago

Thanks for the Ocelot team's effort!

Two api(s) A and B.They all support cors and be tested well. Then a put a gateway using ocelot in front of them. a problem appears. so my question is how to support cors using ocelot. @juancash or perhaps I disable cors support in A &B,and do something in the gateway?

hanyubao commented 7 years ago

so it's my mistake,the function of cors requires options verb. after added the verb,api(s) works well. sorry to post such a foolish issue.