From cb085eeac667398101ca2b30c909898cf590ddd9 Mon Sep 17 00:00:00 2001 From: Venkatesh Devale <61809205+devalevenkatesh@users.noreply.github.com> Date: Fri, 15 Oct 2021 16:57:01 -0700 Subject: [PATCH] Add ingestion gamma endpoint to CSP (#1687) --- demos/browser/webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demos/browser/webpack.config.js b/demos/browser/webpack.config.js index 0dde02ac98..7ce59072b5 100644 --- a/demos/browser/webpack.config.js +++ b/demos/browser/webpack.config.js @@ -52,6 +52,9 @@ if (!csp['script-src'].includes("'unsafe-eval'")) { csp['script-src'] += " 'unsafe-eval'"; } +// 5. Access to event ingestion gamma endpoint for testing and canaries. +csp['connect-src'] += ' https://*.ingest.gchime.aws'; + module.exports = env => { console.info('Env:', JSON.stringify(env, null, 2)); console.info('App:', process.env.npm_config_app);