recorder.js CORS header implementation. Closes #4426
This commit is contained in:
1 parent
80d02254ae
commit
9e0034781a
7 files changed
+192
-20
No files matched your search
@@ -6,6 +6,7 @@ import { getContentSecurityPolicy } from './src/lib/csp';
|
||||
const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts');
|
||||
|
||||
const TRACKER_SCRIPT = '/script.js';
|
||||
const RECORDER_SCRIPT = '/recorder.js';
|
||||
|
||||
const isProd = process.env.NODE_ENV === 'production';
|
||||
|
||||
@@ -99,6 +100,10 @@ if (isProd) {
|
||||
source: TRACKER_SCRIPT,
|
||||
headers: trackerHeaders,
|
||||
});
|
||||
headers.push({
|
||||
source: RECORDER_SCRIPT,
|
||||
headers: trackerHeaders,
|
||||
});
|
||||
}
|
||||
|
||||
const rewrites = [];
|
||||
|
||||
Reference in new issue
Block a user