问题
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