Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ka7ky's avatar
Level 1

Angular Laravel Authentication

I have a problem with my angular application. As it is get api call from laravel backend. I am hosting both of them on the same domain but with different subdomains.Angular project at (beta.easyschools.org) $ backend at (erp.easyschools.org) when I try to log in within the app I keep getting this error message No access origin headers.. however when I put the dist folder of the angular app in my public folder of the laravel I can access the application and log in successful. but I have another problem that any api that I try to call I receive message "unauthenticated". can't find any solution on the internet for this problem.

Important note: Everything works fine in local environment but when I try it on my apache server it is not working as metiond above. although I have configured my backend .htaccess and apache2 server to accept headers

0 likes
2 replies
ka7ky's avatar
Level 1

i alreaddy have cros and i am working with access token passport not JWT. everything is working fine in local but when i put my backend on the server. it doesn't work

Please or to participate in this conversation.