OPTIONS http methods gives an empty response on Heroku

前端 未结 2 889
一生所求
一生所求 2021-01-19 17:37

When I do things locally my CORS calls are working fine

$ curl -i -X OPTIONS \"http://localhost:3000/api/v1/login\"
HTTP/1.1 200 OK
X-Powered-By: Express
Acc         


        
2条回答
  •  抹茶落季
    2021-01-19 18:12

    I filed a ticket for this, as it turned out, things were not easy to troubleshoot, but the answer is very simple: make your calls using https instead of http

提交回复
热议问题