Add AirPlay and Chromecast support (#2872)

* dynamically load cast_sender.js
* add https://www.gstatic.com to connectableOrigins
* Add toggle for chromecast
This commit is contained in:
CJ
2023-07-10 22:47:11 -05:00
committed by GitHub
parent c499c20a7b
commit 8e235a26ee
10 changed files with 80 additions and 3 deletions

View File

@@ -490,7 +490,7 @@ func setPageSecurityHeaders(w http.ResponseWriter, r *http.Request) {
// The graphql playground pulls its frontend from a cdn
if r.URL.Path == playgroundEndpoint {
connectSrc += " https://cdn.jsdelivr.net"
scriptSrc += " https://cdn.jsdelivr.net"
scriptSrc += " https://cdn.jsdelivr.net http://www.gstatic.com https://www.gstatic.com"
styleSrc += " https://cdn.jsdelivr.net"
}