I used a POST to https://jiradev.ngptools.com /jira/rest/api/2/issue/<caseID>/attachments
I have the authentication info in the header as usual.
I set the media type to multipart/form-data, content type for my test is text/plain and contentID testfile2.txt
When I submit, I receive a response of the following – a 404 and XSRF check failed. Researching the XSRF check failure, I found at Atlassian article that mentioned this can happen if the origin is not trusted – is there something we need to do on our side?
Thanks for your help.
HTTP/1.1 404
Date: xxxx
Server: Apache/2.4.27 (Ubuntu)
X-AREQUESTID: 1190x9229x1
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-ASEN: SEN-xxxx
X-Seraph-LoginReason: OK
X-ASESSIONID: xxxx
X-AUSERNAME: xxxx
Cache-Control: no-cache, no-store, no-transform
Content-Type: text/plain;charset=UTF-8
Set-Cookie: JSESSIONID=xxxx;path=/jira;Secure;HttpOnly
Set-Cookie: atlassian.xsrf.token=xxxx;path=/jira;Secure
Keep-Alive: timeout=3600, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
XSRF check failed