From b8d64b1a6c484d92d3b6a40b4cb36f5aae711870 Mon Sep 17 00:00:00 2001 From: Alex Kiss <769991+sysrex@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:38:05 +0000 Subject: [PATCH] chore:revert the commits as it doesn't fix the issue, furthermore creates other bugs --- gatsby-config.js | 14 -------------- package.json | 1 - 2 files changed, 15 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 7548dc0f..0eec5568 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -142,19 +142,5 @@ module.exports = { timeout: 3500, // number; the amount of time, in milliseconds, that you want to allow mailchimp to respond to your request before timing out. defaults to 3500 }, }, - { - resolve: "gatsby-plugin-csp", - options: { - disableOnDev: true, - mergeDefaultDirectives: true, - mergeScriptHashes: true, - directives: { - 'script-src': `'self' 'unsafe-inline'`, - 'style-src': `'self' 'unsafe-inline'`, - 'img-src': `'self'`, - 'font-src': `'self'`, - }, - }, - }, ], }; diff --git a/package.json b/package.json index 27aece5b..0bf4f0d2 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "gatsby": "^5.12.11", "gatsby-plugin-anchor-links": "^1.2.1", "gatsby-plugin-client-side-redirect": "^1.1.0", - "gatsby-plugin-csp": "^1.1.4", "gatsby-plugin-gatsby-cloud": "5.12.2", "gatsby-plugin-google-analytics": "5.12.0", "gatsby-plugin-image": "^3.12.3",