Hi All,
We are trying to create a ticket from a React App using osTicket API. osTicket version we are using is v1.15.3.1.
No logs are coming in System logs as well.
We have not enabled ACL.
osTicket is setup behind a AWS LB. So we have created an API Key with the IP of LB and we are using that for subesquent API calls.
We have been trying to fix it for weeks now but no resolution till now.
Please help.

    4 days later

    KevinTheJedi Thanks for the reply.
    We understood that it is not a CORS issue. Actual error is Request is malformed.
    Request is as below
    {
    "name": "John Doe",
    "email": "johndoe@gmail.com",
    "subject": "Request for something",
    "topicId": 2,
    "message": "test"
    }

    We have added the X-API-Key also in the headers. From cURL CLI and PHP Script, we are getting a success response i.e. a ticket is succesfully created in osTicket. However, when we fire the API with data from a React App or a Postman Client (Browser Agent), we are getting 400 Bad Request - Your browser sent a request that this server could not understand.
    as error.

    Any help or advice would be much appreciated.

    --
    Hari

    Write a Reply...