Skip to main content
Skip table of contents

What is the best way to handle CSRF tokens in scripts that use the REST API?

In XNAT 1.5.4 the cross site request forgery protection demands a token when you post data. What's the preferred way to get or bypass that token?

Details:
Feel free to add details, link to an ongoing discussion in the XNAT Google Group, and so on.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.