Twitter | Pretraživanje | |
Boris
Quick poll: Should CORS errors show up in the web console as warnings or errors? Or does it just not matter?
Reply Retweet Označi sa "sviđa mi se" More
Kadir Topal 6. pro
Odgovor korisniku/ci @bz_moz @dietrich
If it would be useful, we can put this question and others like it on the CORS mdn page for broad input.
Reply Retweet Označi sa "sviđa mi se"
Boris 7. pro
Odgovor korisniku/ci @atopal @dietrich
I'd love it if we had a good way to poll web developers about this sort of thing.
Reply Retweet Označi sa "sviđa mi se"
Mike Taylor 6. pro
Odgovor korisniku/ci @bz_moz
Error seems to make sense (but it likely doesn't matter, just surfacing it is a win).
Reply Retweet Označi sa "sviđa mi se"
Boris 6. pro
Odgovor korisniku/ci @miketaylr
It's already surfaced, as warning, in Firefox. Trying to decide whether to switch it to error.
Reply Retweet Označi sa "sviđa mi se"
Harald Kirschner 🔥🦊🛠 6. pro
Odgovor korisniku/ci @bz_moz
(biased) As error for parity otherwise, devs won't find them where they expect them. They should also be console grouped as they get noisy for some sites.
Reply Retweet Označi sa "sviđa mi se"
Boris 6. pro
Odgovor korisniku/ci @digitarald
Hmm. What does console grouping mean in terms of how they get reported? Right now we report them with "category" set to the specific type of CORS error, but I don't know what console does with the result, exactly...
Reply Retweet Označi sa "sviđa mi se"
Julien Wajsberg 6. pro
Odgovor korisniku/ci @bz_moz
I don't really mind as long as they're good.
Reply Retweet Označi sa "sviđa mi se"
Boris 6. pro
Odgovor korisniku/ci @jwajsberg
So that is a separate question: what constitutes "good" here? The current strings Firefox uses are and seem a bit too verbose and clunky to me. Still trying to decide what those should look like.
Reply Retweet Označi sa "sviđa mi se"
soapdog (mastodon: @soapdog@toot.cafe) 6. pro
Odgovor korisniku/ci @bz_moz @dietrich
if they prevent the request from going through they should be shown as errors in my opinion
Reply Retweet Označi sa "sviđa mi se"
Boris 7. pro
Odgovor korisniku/ci @soapdog @dietrich
That's my feeling about it too. Now what about CSP violations? ;)
Reply Retweet Označi sa "sviđa mi se"