Does the site have CSP rules that prevent this from working? It worked fine locally.