我收到了这个错误:
XMLHttpRequest cannot load http://localhost/authproject/public/api/auth/login. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8101' is therefore not allowed access.
ionic.bundle.js:15567 XHR failed loading: POST
有人能告诉我如何解决这个问题?