I have to make web service call from my websites to thirdparty domain/server. While I am making this call using jQuery Ajax by Post method with content-type:text/plain and it is working fine.
But while I am changing it to content-type: text/xml it is throwing:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Even it set on thirdparty server to allow access to our website. And we are getting this header while making call with content-type:text/plain.
We have also added following on Thirdparty server.
Access-Control-Allow-Methods : Get , Post , Options ,PUT
Access-Control-Allow-Headers: Authorization,origin, content-type, accept
Please let me know what could be the reason that pre-flight request is not getting 'Access-Control-Allow-Origin' in response?