News for hackers. Stuff that matters.
Re:Show HN: Will It CORS? – an automatic CORS explainer by chinhodado on Tuesday August 25, 2020 @01:13PM (#24273567)
What drives me nuts with CORS is there's no (easy) way to disable it in the browser for development purpose, e.g. when I want to run some scripts in a local HTML file to do some basic web scrapping.
Re:Show HN: Will It CORS? – an automatic CORS explainer by chrisshroba on Tuesday August 25, 2020 @01:36PM (#24273824)
I think the --disable-web-security flag should work for you if you're using Chrome or Chromium: https://stackoverflow.com/questions/3102819/disable-same-ori...
Re:Show HN: Will It CORS? – an automatic CORS explainer by ratww on Tuesday August 25, 2020 @02:19PM (#24274311)
Safari has an option to disable CORS in the "Develop" menu.
Re:Show HN: Will It CORS? – an automatic CORS explainer by wilsonrocks on Tuesday August 25, 2020 @02:46PM (#24274608)
I was interested to learn about 'no-cors' where you get a sparse response. Was hoping to use it to find out if a web page was being accessed from a client's internal network or not (by trying to get a page that only existed there and inspecting the response)

In the end I didn't get to find out if it worked or not due to boring reasons.

Re:Show HN: Will It CORS? – an automatic CORS explainer by zackify on Tuesday August 25, 2020 @02:43PM (#24274583)
just use this https://cors-anywhere.herokuapp.com/

or just set all your cors headers to * on your server

Re:Show HN: Will It CORS? – an automatic CORS explainer by user5994461 on Tuesday August 25, 2020 @03:09PM (#24274849)
* is blocked by most browsers to avoid lazy developers putting their site wild open to abuse.
Re:Show HN: Will It CORS? – an automatic CORS explainer by 411111111111111 on Tuesday August 25, 2020 @03:44PM (#24275233)
At least Chrome and Firefox don't block it. I've recently used something similar as an add-on until I did exactly what he said: manually setting a cors * header for that internal development server
Re:Show HN: Will It CORS? – an automatic CORS explainer by zackify on Sunday August 30, 2020 @05:03PM (#24325929)
Chrome and Firefox do not.

If that’s really the case with your browser.... set it to request.origin, so it’s always valid haha

Re:Show HN: Will It CORS? – an automatic CORS explainer by timvdalen on Tuesday August 25, 2020 @02:47PM (#24274616)
Isn't that just begging for legal trouble?
Re:Show HN: Will It CORS? – an automatic CORS explainer by quickthrower2 on Wednesday August 26, 2020 @12:45AM (#24279193)
Is that a MITM?