From cfe1ef818921c649d101671a5b60d5b83a030017 Mon Sep 17 00:00:00 2001 From: "thomashii@dukefirehawk.com" Date: Mon, 13 Nov 2023 10:20:29 +0800 Subject: [PATCH] Updated README --- packages/hot/README.md | 2 +- packages/production/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hot/README.md b/packages/hot/README.md index 242fd99c..da498f88 100644 --- a/packages/hot/README.md +++ b/packages/hot/README.md @@ -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'); } diff --git a/packages/production/README.md b/packages/production/README.md index 097dfca6..7b7de1ee 100644 --- a/packages/production/README.md +++ b/packages/production/README.md @@ -75,7 +75,7 @@ void main(List 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'