XMLHttpRequest cannot load <website>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<otherwebsite>' is therefore not allowed access. The response had HTTP status code 401.
What I'm curious about is that last line at the end. There's some point in my php code that I can change the status code and it changes the number in that output. But if the browser is blocking the request, how is it possible that server side application code where this change is happening is being executed?