- Edited
Hello,im trying to create a ticket with the osticket API. With the cURL in php its working fineWith ajax i have always this error: Failed to load resource: the server responded with a status of 401 (Unauthorized)This is my request headersPOST /~xxx/ticket19/api/http.php/tickets.json HTTP/1.1
Host: xxx.it
Connection: keep-alive
Content-Length: 0
Accept: */*
Origin: http://xxx.it
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
X-API-Key: 1EF22FBACA1F1715BA3E70AE245A5BF4
Referer: http://xxx.it/test/ost-api-example.php
Accept-Encoding: gzip, deflate
Accept-Language: it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4
Cookie: OSTSESSID=jnie4mlmor9q9hpehbrfl388k3; cb-enabled=acceptedAny tips for me? Need more info?Thanks