Not able to upload attachments due to XSRF

I’m not able to upload attachments from my server because of XSRF check failed.
I added X-Atlassian-Token: no-check to the header as described, but still the JIRA endpoint just ignores it.
Can you help me out?

Thanks