feat: implement domain isolation system with middleware and loader scripts for enhanced security

This commit is contained in:
WhiteX 2025-06-13 23:19:30 +03:00 committed by rzmk
parent 950876adf3
commit f4b942984c
4 changed files with 220 additions and 23 deletions

View file

@ -4,10 +4,12 @@ export default function Document() {
return (
<Html lang="en">
<Head>
{/* Load runtime configuration before any app code */}
<script src="/runtime-config.js" />
{/* Load API interceptor to enforce correct domain */}
<script src="/api-interceptor.js" />
{/* Load domain isolation loader first - immediate protection */}
<script src="/domain-isolation-loader.js" strategy="beforeInteractive" />
{/* Load runtime configuration */}
<script src="/runtime-config.js" strategy="beforeInteractive" />
{/* Load comprehensive API interceptor */}
<script src="/api-interceptor.js" strategy="beforeInteractive" />
</Head>
<body>
<Main />