mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: implement domain isolation system with middleware and loader scripts for enhanced security
This commit is contained in:
parent
950876adf3
commit
f4b942984c
4 changed files with 220 additions and 23 deletions
|
|
@ -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 />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue