diff --git a/moonraker/components/authorization.py b/moonraker/components/authorization.py index 793d81c..d020598 100644 --- a/moonraker/components/authorization.py +++ b/moonraker/components/authorization.py @@ -799,6 +799,11 @@ class Authorization: "Origin, Accept, Content-Type, X-Requested-With, " "X-CRSF-Token, Authorization, X-Access-Token, " "X-Api-Key") + if req_hdlr.request.headers.get( + "Access-Control-Request-Private-Network", None) == "true": + req_hdlr.set_header( + "Access-Control-Allow-Private-Network", + "true") def cors_enabled(self) -> bool: return self.cors_domains is not None