Frontend sending only OPTIONS request

独自空忆成欢 提交于 2019-12-11 06:13:25

问题


I have a question about OPTIONS request. I have an application, with Angular2 on frontend and Nginx-uWSGI-Django backend. All parts of app are working fine, except for Angular Datatables. Frontend and backend are on the same domain but different subdomains, but as I understood that is no CORS used. Except for Datatables, at that time Angular sending OPTIONS request, and after server answers with 200, no GET request is sended. Just OPTIONS and nothing else. How it can be solved, or what problem can cause it? Thanks a lot.
P.S. I have Access-Allow-Origin header "turned on" and on local machine with django dev-server all working fine.

来源:https://stackoverflow.com/questions/43519464/frontend-sending-only-options-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!