removed X-Frame-Option from video-embed response headers
This commit is contained in:
parent
04a653fefb
commit
7400fba3ad
1 changed files with 3 additions and 3 deletions
|
@ -3,9 +3,9 @@ const { details: { host } } = require('@config/siteConfig');
|
||||||
const sendVideoEmbedPage = ({ params }, res) => {
|
const sendVideoEmbedPage = ({ params }, res) => {
|
||||||
const claimId = params.claimId;
|
const claimId = params.claimId;
|
||||||
const name = params.name;
|
const name = params.name;
|
||||||
console.log('HOST:', host);
|
// test setting response headers
|
||||||
console.log('CLAIM ID:', claimId);
|
console.log('removing x-frame-options');
|
||||||
console.log('NAME:', name);
|
res.removeHeader('X-Frame-Options');
|
||||||
// get and render the content
|
// get and render the content
|
||||||
res.status(200).render('embed', { host, claimId, name });
|
res.status(200).render('embed', { host, claimId, name });
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue