inertia-laravel icon indicating copy to clipboard operation
inertia-laravel copied to clipboard

subfission/Cas and CORS

Open ProjectesFUAB opened this issue 3 years ago • 0 comments
trafficstars

I'm using Subfission/CAS to authenticate users through middleware in Laravel:

if (!cas()->checkAuthentication()) cas->authenticate();

All works fine until use Link component or partial reloads and cas session has expired. Then get CORS error:

Access to XMLHttpRequest at '...' (redirected from '...') from origin '...' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Any idea how I can avoid the error?

ProjectesFUAB avatar Jul 08 '22 09:07 ProjectesFUAB