lwcolton / falcon-cors

CORS support for Falcon: http://falconframework.org
Apache License 2.0
74 stars 15 forks source link

Error 503 while trying to access to an endpoint with a public cors #13

Open jbriand opened 5 years ago

jbriand commented 5 years ago

Hi there,

maybe you could help me on this one:

https://stackoverflow.com/questions/56172533/micro-services-using-falcon-managing-cors

Any remarks, questions, do not hesitate!

And thanks in advance for your help!

J

lwcolton commented 5 years ago

1) falcon-cors isn't going to raise a 503. Look for a stack trace in your server output, this is probably an unrelated issue

2) falcon-cors will only send CORS headers in the response if the request includes the origin header, as per cors spec

3) possibly your endpoint errors out when hit with requests library because it does not send a header accessed by your endpoint to build the response

On Fri, May 17, 2019, 4:04 AM Julien Briand notifications@github.com wrote:

Hi there,

maybe you could help me on this one:

https://stackoverflow.com/questions/56172533/micro-services-using-falcon-managing-cors

Any remarks, questions, do not hesitate!

And thanks in advance for your help!

J

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lwcolton/falcon-cors/issues/13?email_source=notifications&email_token=AAK24LVKIIDIKC2D6WCTDB3PVZYLTA5CNFSM4HNTNZ52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GULLBIQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK24LQI75IVYNMU7SS2BCDPVZYLTANCNFSM4HNTNZ5Q .