Answer the question
In order to leave comments, you need to log in
Why doesn't it work in cross-domain delete?
I'm trying to do a cross domain delete request, it works fine. It passes options first, it gets headers from the server with the following content => response headers
Access-Control-Allow-Credentials:true
Access-Control-Allow-Headers:content-type
Access-Control-Allow-Methods:GET,HEAD,PUT,POST,DELETE
Access-Control-Allow-Origin:http://localhost:8081
Connection:keep-alive
Date:Fri, 17 Feb 2017 16:14:17 GMT
Access-Control-Allow-Credentials:true
Access-Control-Allow-Methods:GET,HEAD,PUT,POST,DELETE
Access-Control-Allow-Origin:http://localhost:8081
Connection:keep-alive
Content-Length:259
Content-Type:application/json; charset=utf-8
Date:Fri, 17 Feb 2017 16:14:17 GMT
Answer the question
In order to leave comments, you need to log in
I had the same issue. Here is the documentation that helped me. True, I had a need for POST requests with JSON in the attachment, and I also used authentication, but browser security restrictions did not allow me to do this.
In short, the DELETE method cannot be used on Cross-domain.
Also there are restrictions on the ContentType that can be.
I recommend that you carefully read the proposed documentation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question