Updated README

This commit is contained in:
thomashii@dukefirehawk.com 2023-11-13 10:20:29 +08:00
parent 4fdd0133a3
commit cfe1ef8189
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ void main() async {
// Remove 'X-FRAME-OPTIONS'
http.defaultResponseHeaders.remove('X-FRAME-OPTIONS', 'SAMEORIGIN');
// Add 'X-XSRF_TOKEN'
// Add 'X-XSRF-TOKEN'
http.defaultResponseHeaders.add('X-XSRF-TOKEN',
'a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e');
}

View file

@ -75,7 +75,7 @@ void main(List<String> args) {
// Remove 'X-FRAME-OPTIONS'
var removeHeader = {'X-FRAME-OPTIONS': 'SAMEORIGIN'};
// Add 'X-XSRF_TOKEN'
// Add 'X-XSRF-TOKEN'
var customHeader = {
'X-XSRF-TOKEN':
'a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e'