When I send a request to laravel using axios, if error 500 happens I get Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8000/api/addUsersToShift. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500.. CORS headers are adding on 422 errors, So I only problem with 500 error.
When I send a request to laravel using axios, if error 500 happens I get
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8000/api/addUsersToShift. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500.
. CORS headers are adding on 422 errors, So I only problem with 500 error.