I'm using Laravel 5.6 and Angular 6. My backend uses the standard session login precedure of Laravel, but there is a problem:
In Postman-Tests everything works - I get a Set-Cookie header from Laravel and I'm authenticated. If I open my API in the browser manually, I get the Set-Cookie header from Laravel, the cookie get stored in the browser and I'm authenticated - everything fine. But if I'm trying to access the API from my Angular-App, then the cookie is not set in the browser - although there is the correct Set-Cookie header.
Can anyone help me? The App is delivert from localhost:4200 and the API from localhost:4100. Is that a problem?
apimiddleware in laravel does not read cookies by default.