I'm using Express on the backend and I have app.use(cors());. It is running on localhost:3000.
I have Angular on the frontend running on localhost:4200.
Trying to send a GET request I get a CORS error: Access to XMLHttpRequest at 'localhost:3000/api/state' from origin 'http://localhost:4200' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: chrome, chrome-extension, chrome-untrusted, data, http, https, isolated-app.
I must be missing something obvious, but I cannot figure it out.