Added comments

This commit is contained in:
thomashii@dukefirehawk.com 2023-11-13 09:34:01 +08:00
parent 85a5c45a13
commit 94d1c5affd

View file

@ -72,10 +72,12 @@ For example, the following code snippet removes `X-FRAME-OPTIONS` and adds `X-XS
```dart ```dart
void main(List<String> args) { void main(List<String> args) {
// Remove default // Remove 'X-FRAME-OPTIONS'
var removeHeader = {'X-FRAME-OPTIONS': 'SAMEORIGIN'}; var removeHeader = {'X-FRAME-OPTIONS': 'SAMEORIGIN'};
// Add 'X-XSRF_TOKEN'
var customHeader = { var customHeader = {
'X-XSRF_TOKEN': 'X-XSRF-TOKEN':
'a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e' 'a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e'
}; };