From 94d1c5affd08aae56c645a0eaed4da0005182e09 Mon Sep 17 00:00:00 2001 From: "thomashii@dukefirehawk.com" Date: Mon, 13 Nov 2023 09:34:01 +0800 Subject: [PATCH] Added comments --- packages/production/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/production/README.md b/packages/production/README.md index 3d947743..b797ddea 100644 --- a/packages/production/README.md +++ b/packages/production/README.md @@ -72,10 +72,12 @@ For example, the following code snippet removes `X-FRAME-OPTIONS` and adds `X-XS ```dart void main(List args) { - // Remove default + // Remove 'X-FRAME-OPTIONS' var removeHeader = {'X-FRAME-OPTIONS': 'SAMEORIGIN'}; + + // Add 'X-XSRF_TOKEN' var customHeader = { - 'X-XSRF_TOKEN': + 'X-XSRF-TOKEN': 'a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e' };