curl works but browser fetch gets CORS error — what is actually different?
I can POST to our internal API with curl and get a 200. The same request from fetch() in the browser fails with a CORS error before the server sees anything. I added Access-Control-Allow-Origin: * on the server and now it complains about a preflight. Why does curl not have this problem?
4 replies