recorder.js CORS header implementation. Closes #4426

This commit is contained in:
Francis Cao committed 2026-08-04 15:34:36 -07:00
1 parent 80d02254ae
commit 9e0034781a
7 files changed
+192 -20

No files matched your search

+5
View File
@@ -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 = [];