Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do you get hold of the atl_token in JavaScript on the JIRA mobile interface?

Thomas Alfred
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2015

On standard JIRA, this is easy as there is the atl_token() method which does this:

function atl_token() {
    return jQuery("#atlassian-token").attr("content")
}

In the JIRA mobile interface, the atlassian-token meta tag is missing, so it's not possible to access atl_token / the anti-request forgery token.

Is there a cunning way/workaround I can get hold of this?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2015

I see it's present in Cookies:

image2015-8-4 15:32:35.png

Thomas Alfred
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2015

Great thanks.

TAGS
AUG Leaders

Atlassian Community Events