Load challenge as style

This commit is contained in:
WeebDataHoarder
2025-04-08 02:38:53 +02:00
parent 2ce9709667
commit f272a5ae72
2 changed files with 5 additions and 1 deletions

View File

@@ -406,7 +406,7 @@ func NewState(p policy.Policy, settings StateSettings) (state *State, err error)
redirectUri.RawQuery = values.Encode()
w.Header().Set("Link", fmt.Sprintf("<%s>; rel=preload; as=fetch; crossorigin=1", redirectUri.String()))
w.Header().Set("Link", fmt.Sprintf("<%s>; rel=preload; as=style; fetchpriority=high", redirectUri.String()))
defer func() {
// remove old header header!
w.Header().Del("Link")