It has to do with CORS requests, HttpOnlyCookies, a Laravel backend on one subdomain, and a NuxtJS frontend on another subdomain.
Netlify is the greatest thing in the world so I use that to serve up the frontend. I tried Identity and Functions to remove my need for the Laravel server, but I didn’t feel like it was quite ready yet.
I eventually figured out that I can just hit
frontend.app.localhost:8888 in the browser and have it still go to
localhost:8888. The backend is then on
api.app.localhost and everything works in terms of CORS, etc.
I also hard-corded the origins into my CORS setup to include the
frontend idea as well as the in-production domains.
I also had a
netlify.js file that was handling all fetch requests in my app (because I was trying to get it to work with Identity), and I had hard-coded the
localhost:8888 into a const there. Once I adjusted that to reflect this new
frontend.app.localhost:8888 idea, all is working splendidly.