Read ALLOWED_FRAME_URLS at runtime so CSP frame-ancestors works in standalone mode

Fixkamo-analytics
Navios
17 de abril de 2026 às 19:04 UTC
Autor
Kamo
Enviar
dd02991

The env var was being read at module scope during build, baking an empty value into the standalone server. Move CSP and all header construction into functions called by the async headers() callback so they resolve at request time with the runtime environment.

Todas as alterações

Como o que vês no transporte?

Cada uma dessas atualizações pousa automaticamente em seu espaço de trabalho. Comece grátis e veja crescer semana após semana.

Começar Livre Para SempreVer Preços