Cors Blocked in codespace

I’m trying to make a connection between two codespace ports, a post request is sent that returns the error
Access to XMLHttpRequest at ‘’ from origin ‘’ 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?