Not sure I understand the question 100%, but you can just add in a header on the API :-
Access-Control-Allow-Origin: http://yoursite.com
or
Access-Control-Allow-Origin "*"
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi! i have a problem and i don´t know how to fix this, i need create a session with angular, but at the time of send mi credentials to the laravel app i see this en mi console javascript: 'XMLHttpRequest cannot load http://proflemsa.dev/api/v.0.1/login. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. ', please i need you help. Thanks so much
Not sure I understand the question 100%, but you can just add in a header on the API :-
Access-Control-Allow-Origin: http://yoursite.com
or
Access-Control-Allow-Origin "*"
Please or to participate in this conversation.