Skip to Content

XSODATA ERROR 405 (Method Not Allowed)


I am facing an issue with my xsodata. Everything works fine

Nevertheless, I get the error: HEAD 405 (Method Not Allowed)

I have the following issue :

Especially I don't understand why it says that the allowed headers are GET, POST, PUT, PATCH, DEL - while my settings in the XS Admin Tool are different.

Here is my .xsaccess file

    "exposed": true,
    "authentication": {
        "method": "Form"
    "cache_control": "must-revalidate",
        "enabled": true,
        "allowMethods": ["GET", "POST", "HEAD", "OPTIONS"],
        "allowOrigin": ["<My domain>"],
        "allowCredential": true,
        "exposeHeaders": "access-control-allow-headers,access-control-allow-origin,access-control-expose-headers,authorization",
        "allowHeaders": "Origin, Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control",
        "maxAge": "3600"
    "enable_etags": false,
    "force_ssl": false,
    "xhrFields": {
        "withCredentials": true

Could you help me ?

Thank you


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 18, 2018 at 07:57 PM


    I have solved my issue. (2524052 - How to disable HTTP HEAD requests)

    It was not working inside the controller.

    I have put it directly inside my manifest.json :

    { "timesheet" :
    { "dataSource" : "timesheet", "settings":
    { "disableHeadRequestForToken": true <===== } } }

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.