Cors Blocked in codespace

I’m trying to make a connection between two codespace ports, a post request is sent that returns the error
login:1
Access to XMLHttpRequest at ‘xxx.githubpreview.dev/api/login’ from origin ‘xxx.githubpreview.dev’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: Redirect is not allowed for a preflight request.

I’ve enabled proxy, adjusted colors both angular and laravel, but the problem persists. Does anyone know how to solve?