mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-03 17:00:19 +00:00
Fix bug CSRF token!
This commit is contained in:
@ -73,7 +73,7 @@ export default class OrderPage extends Component {
|
|||||||
console.log(this.state)
|
console.log(this.state)
|
||||||
const requestOptions = {
|
const requestOptions = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {'Content-Type':'application/json', 'X-CSRFToken': csrftoken},
|
headers: {'Content-Type':'application/json', 'X-CSRFToken': getCookie('csrftoken')},
|
||||||
body: JSON.stringify({}),
|
body: JSON.stringify({}),
|
||||||
};
|
};
|
||||||
fetch('/api/order/' + '?order_id=' + this.orderId, requestOptions)
|
fetch('/api/order/' + '?order_id=' + this.orderId, requestOptions)
|
||||||
|
Reference in New Issue
Block a user