Skip to content

Commit

Permalink
Update webserver.js
Browse files Browse the repository at this point in the history
  • Loading branch information
XboxBedrock authored Apr 14, 2024
1 parent 3e8ca74 commit 16dd4df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ function serveAttachments(req, res) {
}

const server = express();
server.use(helmet());
server.use(helmet({
contentSecurityPolicy: {
directives: {
"frame-ancestors": ["'self'", "buildtheearth.net", "*.buildtheearth.net", "*"],
},
}));
server.use(cors());

server.get("/logs/:threadId", serveLogs);
Expand Down

0 comments on commit 16dd4df

Please sign in to comment.