Access Jira XSRF Token From the Jira Gadget inside Confluence

Hi,

Is It possible to retrieve the atlassian.xsrf.token from Jira while working within Confluence when embedding a Jira gadget in Confluence?