fix: pipeline
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 12s
Build & Deploy / 🧪 QA (push) Successful in 1m49s
Build & Deploy / 🏗️ Build (push) Successful in 3m51s
Build & Deploy / 🚀 Deploy (push) Successful in 31s
Build & Deploy / 🧪 Smoke Test (push) Failing after 54s
Build & Deploy / 🔔 Notify (push) Successful in 2s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 12s
Build & Deploy / 🧪 QA (push) Successful in 1m49s
Build & Deploy / 🏗️ Build (push) Successful in 3m51s
Build & Deploy / 🚀 Deploy (push) Successful in 31s
Build & Deploy / 🧪 Smoke Test (push) Failing after 54s
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
@@ -73,6 +73,17 @@ export default function middleware(request: NextRequest) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow iframe embedding from recorder domains
|
||||||
|
const referer = headers.get('referer') || '';
|
||||||
|
const recorderDomains = ['recorder.localhost', 'recorder.mintel.me'];
|
||||||
|
const isRecorderRequest = recorderDomains.some((domain) => referer.includes(domain));
|
||||||
|
|
||||||
|
if (isRecorderRequest) {
|
||||||
|
response.headers.delete('x-frame-options');
|
||||||
|
response.headers.delete('content-security-policy');
|
||||||
|
response.headers.set('Access-Control-Allow-Origin', '*');
|
||||||
|
}
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(
|
console.error(
|
||||||
|
|||||||
Reference in New Issue
Block a user