Cannot use PUT method at XML Request.

Hello,

I’m having trouble using EspoCRM and making XML Request of a PUT method.

XMLHttpRequest cannot load https://infinityfree.net/errors/403. Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin is therefore not allowed access.

Using PUT methods should work, but CORS is not supported. Is both EspoCRM and the page you’re trying to request on the same domain and on the same account.

Yes.

Both are using the same domain on same account.

It’s a request from site to a folder /api inside the same site that make the request.

The GET method works fine.

I suspected there would be a specific issue with PUT requests, but a server admin told me that sending PUT requests is no problem as long as a proper user agent header is present (which should be the case with an Ajax request).