comparison doc/rest.txt @ 6204:e77f6d00cfb9

Fix display formatting.
author John Rouillard <rouilj@ieee.org>
date Tue, 23 Jun 2020 14:02:50 -0400
parents 0f0dedd2f95d
children 1b9f6b9befeb
comparison
equal deleted inserted replaced
6203:46314996da55 6204:e77f6d00cfb9
1362 Note the addition of headers for: x-requested-with and referer. This 1362 Note the addition of headers for: x-requested-with and referer. This
1363 allows the request to pass the CSRF protection mechanism. You may need 1363 allows the request to pass the CSRF protection mechanism. You may need
1364 to add an Origin header if this check is enabled in your tracker's 1364 to add an Origin header if this check is enabled in your tracker's
1365 config.ini (look for csrf_enforce_header_origin). 1365 config.ini (look for csrf_enforce_header_origin).
1366 1366
1367 A similar curl based retire example is to use: 1367 A similar curl based retire example is to use::
1368 1368
1369 curl -s -u admin:admin \ 1369 curl -s -u admin:admin \
1370 -H "Referer: https://tracker.example.com/demo/" \ 1370 -H "Referer: https://tracker.example.com/demo/" \
1371 -H "X-requested-with: rest" \ 1371 -H "X-requested-with: rest" \
1372 -H "Content-Type: application/json" \ 1372 -H "Content-Type: application/json" \

Roundup Issue Tracker: http://roundup-tracker.org/