mirror of
https://github.com/versia-pub/server.git
synced 2025-12-08 09:18:19 +01:00
fix: 🐛 Only apply security headers to /api/*
This commit is contained in:
parent
87b8c2bebe
commit
ed22da15df
1
app.ts
1
app.ts
|
|
@ -41,6 +41,7 @@ export const appFactory = async () => {
|
||||||
app.use(logger);
|
app.use(logger);
|
||||||
app.use(boundaryCheck);
|
app.use(boundaryCheck);
|
||||||
app.use(
|
app.use(
|
||||||
|
"/api/*",
|
||||||
secureHeaders({
|
secureHeaders({
|
||||||
contentSecurityPolicy: {
|
contentSecurityPolicy: {
|
||||||
// We will not be returning HTML, so everything should be blocked
|
// We will not be returning HTML, so everything should be blocked
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue