From 98e726f05145a11a57345a262eeebd2694aa18f9 Mon Sep 17 00:00:00 2001 From: Tyler Barnes Date: Fri, 9 Jul 2021 12:08:35 -0700 Subject: [PATCH] fix(gatsby-source-wordpress): Backporting auth leak fix (#32315) * fix(gatsby-source-wordpress): don't leak auth details * v2 didn't have these integration tests set up Co-authored-by: Ward Peeters --- .../src/steps/process-and-validate-plugin-options.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts b/packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts index 97e3c64973097..cc93a2b9242d5 100644 --- a/packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts +++ b/packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts @@ -86,5 +86,8 @@ export const processAndValidatePluginOptions = ( } }) + // remove auth from pluginOptions so we don't leak into the browser + delete pluginOptions.auth + return userPluginOptions }