Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

chore(sdk e2e): make the "Invalid Host/Origin header" errors go away (#62803)

Nicolò Prettoe5e2ff55fa75
diff --git a/e2e/support/component-webpack.config.js b/e2e/support/component-webpack.config.js
index 2815fe94574..6367b3648cf 100644
--- a/e2e/support/component-webpack.config.js
+++ b/e2e/support/component-webpack.config.js
@@ -31,6 +31,11 @@ module.exports = {
output: {
path: path.resolve(__dirname, "dist"),
},
+ devServer: {
+ // Makes "Invalid Host/Origin header" errors go away.
+ // Cypress component tests seem to run on `127.0.0.1`
+ allowedHosts: ["localhost", "127.0.0.1"],
+ },
module: {
rules: [
{