Lumen API CORS Ajax 405 Method Not Allowed

后端 未结 3 1973
忘了有多久
忘了有多久 2021-01-16 13:42

I have an api on Laravel Lumen, we test via Postman and Ruby Rest Client and all go very well, but we create a simple Auth Login that response a web token, all works fine bu

3条回答
  •  生来不讨喜
    2021-01-16 14:35

    You can add simple OPTIONS handler that should be return 200 code Here a useful example to integrate:

    https://gist.github.com/danharper/06d2386f0b826b669552

提交回复
热议问题