Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add "X-Atlassian-Token: no-check" request header to custom issue collector

Tiancheng Chen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 18, 2023

I'm trying to leverage Jira issue collector in our project, but it runs into `XSRF check failed` issue. I was pointed to add "X-Atlassian-Token: no-check" to request header, but there seems no way to add it through issue collector, as I don't have direct control of it.

I configured Issue collector's 'Trigger Type' to be 'Custom', then placed following code in my project html

<script type="text/javascript">

      window.ATL_JQ_PAGE_PROPS = {

        triggerFunction: function (showCollectorDialog) {

          window.showCollectorDialog = showCollectorDialog;

        }

      };

 </script>
Please point me out if there is a way to add "X-Atlassian-Token: no-check" to header, or if I should use jira api. Thanks.

 

1 answer

0 votes
Mark Libunao June 7, 2023

Hi, did you have any solution here? We are also facing the same issue. The only solution I was able to find is thru the backend (also a workaround). 

https://jira.atlassian.com/browse/JRASERVER-73212

Suggest an answer

Log in or Sign up to answer