I have already verified that using CURL I can make the following call:
curl -b cookies.txt -c cookies.txt https://jiracloud.<my-company.com>/browse/PROJ-1731
with this cookie jar file:
# Netscape HTTP Cookie File
# https://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
#HttpOnly_jiracloud.<my-company.com> FALSE / TRUE 0 JSESSIONID XXXXXXX
jiracloud.<my-company.com> FALSE / TRUE 0 atlassian.xsrf.token <redacted>
I got the <redacted> value shown from simply copying and pasting from the browser console when logged into our Jira site. Again, this works.
My question is whether it will be possible, using Javascript from a separate site, to duplicate the same curl call (i.e. control the cookies and headers, most importantly cookies in this case) with AJAX, and have the same success. Thanks.