News for hackers. Stuff that matters.
Re:Show HN: I created Make.rs – a place where makers show wh... by MucuMare on Tuesday April 27, 2021 @04:04PM (#26960789)
This is weird, you are the second one who reports this today. I really wonder what's wrong as it works for the rest, and the CORS is configured correctly IMO (but seems it's not?). Sorry :/
Re:Show HN: I created Make.rs – a place where makers show wh... by DrOctagon on Wednesday April 28, 2021 @03:26AM (#26966696)
I had a similar issue once with an app hosted on Azure. Large images were triggering the WAF sometimes as a ‘chunk’ of the image would falsely match a default firewall rule.

The CORS error was because the ‘request blocked’ response was a html page without cross origin headers.

Worth checking for that

Re:Show HN: I created Make.rs – a place where makers show wh... by dalmo3 on Wednesday April 28, 2021 @05:24PM (#26974407)
Yes, I've seen this same issue with AWS lambdas. Browser reports CORS errors but sending the same request with Postman returns HTTP500, which made me realise it was a malformed request.
Re:Show HN: I created Make.rs – a place where makers show wh... by MucuMare on Wednesday April 28, 2021 @03:51AM (#26966842)
Very interesting, thanks for the pointer, much appreciated. I was suspecting it has to do with uploading large images but your comment made it clear where to look at now.
Re:Show HN: I created Make.rs – a place where makers show wh... by ecesena on Tuesday April 27, 2021 @06:53PM (#26962999)
Do you have multiple API instances by chance? Maybe one remained with "old" code?
Re:Show HN: I created Make.rs – a place where makers show wh... by MucuMare on Wednesday April 28, 2021 @03:32AM (#26966744)
Only one which is deleted everytime I deploy a new version. This one stresses me a lot at the moment so I need to figure out what causes it and then fix it haha.