4 ms·
The response from script.google.com is a 302 redirect to script.googleusercontent.com. IOW, google.com itself does not serve that user content.
by whatgoodisaroad 9y ago
The response from script.google.com is a 302 redirect to script.googleusercontent.com. IOW, google.com itself does not serve that user content.
- snowwrestler 9y agoBut why does Google redirect that? Why not just return an error? It's not like users will accidentally type in script.google.com and get mad if it fails. Those script URLs are being used only by app developers, who will test their apps and fix script source URLs that are broken. Calling a googleusercontent script at google.com should return a 4xx status code telling them to use the googleusercontent domain. Google.com is a trusted domain. I don't think it should be 302'ing to untrusted domains for arbitrary URLs.
- ryanlol 9y ago>Google.com is a trusted domain. I don't think it should be 302'ing to untrusted domains for arbitrary URLs. I think you should read this again and then take a moment to think about the services people primarily visit google.com for. Also, what exactly are "trusted domains"? Why do they matter to users clicking links? On a website there's no way for an user to verify where a link is going to take them without actually clicking the link. The tooltip for example tends to be relatively easy to spoof.