Skip to content

Commit

Permalink
Improve http iframe headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ggodlewski committed Jan 24, 2024
1 parent be17bba commit c5d0919
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/containers/server/ServerContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ export class ServerContainer extends Container {

app.use((req, res, next) => {
res.header('GIT_SHA', process.env.GIT_SHA);
res.header('x-frame-options', 'ALLOW-FROM https://docs.google.com/');
// res.header('x-frame-options', 'ALLOW-FROM https://docs.google.com/');
res.header('Content-Security-Policy', 'frame-ancestors \'self\' https://*.googleusercontent.com https://docs.google.com;');
next();
});

Expand Down

0 comments on commit c5d0919

Please sign in to comment.