I am making a webapp with a backend API on a different domain, and I am running into CORS issues because of me not setting any headers. I am wondering why CORS blocks all origins by default, because a different header (Access-Control-Allow-Credentials) controls sending cookies cross-origin, and it doesn’t work on wildcard CORS headers. Why does CORS in browsers only allow same-origin if it still doesn’t allow cross-origin cookies even with a wildcard?
You must log in or register to comment.

