I sort of get it and yet even when I'm sure I've configured it correctly, I'll hit road blocks in Safari, for example, when it works everywhere else as expected. It is such a frustrating experience.
Developers don't understand CORS
71–80 of 366 posts
Re: Developers don't understand CORS
#72Earlier quoted context omitted.
> In that case, I propose to read more of the spec. Ingest more teflon when in doubt about its toxicity.
But Teflon is non-toxic and biocompatible. You can eat it, your body is unable to process it or break it down and it will pass through your digestive system. You can coat surgical instruments and medical implants with Teflon. (Above 300°C Teflon will generate toxic fumes, but then again, so will wood.)
Re: Developers don't understand CORS
#73Earlier quoted context omitted.
Could they sign and distribute a cert for localhost.zoom.us and point the DNS at 127.0.0.1?
No, because you'd have to distribute the private key for the local webserver to be able to sign the connection challenge.
I would think that they could distribute the cert (and the key) and have it work. [Edit] Unless browsers detect that it's a local IP address behind the domain name and still consider it a special case of origin.
Re: Developers don't understand CORS
#74Re: Developers don't understand CORS
#75Earlier quoted context omitted.
I thought the browser at evil.com would first send a pre-fetch request without the cookies, but not send the full request when it doesn't get the correct value from Access-Control-Allow-Origin in the response from banking.com. I'll admit I may be one of the developers that doesn't understand CORS...
I think you could implement that with CORS + CSRF tokens (blocking all types of Cross-Origin requests) but the default behaviour is to allow Cross-Origin writes (e.g. with form submissions). See https://developer.mozilla.org/en-US/docs/Web/Security/Same-o... This is why we have CSRF tokens. So that you can effectively block Cross-Origin writes.
Re: Developers don't understand CORS
#76The reason the developers didn't use CORS is because active mixed content isn't allowed. You simply cannot call ' http://localhost' from a https domain. For a medical SaaS application which needed to communicate via USB I created a self-signed certificate during installation and added it to the trust store to be able to call active content on localhost. Previously, we used NPAPI (which, when used correctly was more s…
This is discussed in the post text, but happy to elaborate here in more detail here! Here is the patch links from Firefox[0] and from Chrome[1] which they specify that active mixed content policies do not apply to the localhost, because the w3c specification was updated to specifically allow this behaviour[2]. You might have to use 127.0.0.1 directly. So yes, it is allowed. If for some reason that doesn't work for yo…
2016 is in the 50s, and this[1] claims that version [1] https://www.w3schools.com/browsers/browsers_chrome.asp
Re: Developers don't understand CORS
#77Earlier quoted context omitted.
> In that case, I propose to read more of the spec. Ingest more teflon when in doubt about its toxicity.
But Teflon is non-toxic and biocompatible. You can eat it, your body is unable to process it or break it down and it will pass through your digestive system. You can coat surgical instruments and medical implants with Teflon. (Above 300°C Teflon will generate toxic fumes, but then again, so will wood.)
Unless you are a parrot. I've heard it is disproportionately toxic to birds. (or is it just parrots?)
Re: Developers don't understand CORS
#78Earlier quoted context omitted.
Could they sign and distribute a cert for localhost.zoom.us and point the DNS at 127.0.0.1?
No, because you'd have to distribute the private key for the local webserver to be able to sign the connection challenge.
Re: Developers don't understand CORS
#79Re: Developers don't understand CORS
#80Consider this argument: CORS basically ensures that browser and servers cooperate to protect end users from a "smart" user agent that happily throws around cookies and/or auth tokens. Remove cookies and basic auth headers, what's the point of CORS?
Happy to hear thoughts from folks more knowledgeable in web security than me. If not, let's please get together to propose an RFC for the CORS-GTFO header (a server header indicating that a browser does not have to do wasteful preflights etc.)