I have an Angular app running in gh-pages https://yourweatherapp.github.io/yourweatherapp.github.io which make requests to a node.js app that it´s running in a host.
Previously, I have consulted other info on the net like this How to allow CORS?, but solutions don´t work for me
I have configured the node.js app to allow request from this origin on this way:
const corsMiddleware = cors({
    origin: [process.env.URL, 'https://yourweatherapp.github.io/yourweatherapp.github.io/login']
  })
  app.use(corsMiddleware)
  app.options('*', corsMiddleware) 
But the browser doesn´t allow to receive the answer and do login.
What am I doing wrong?
 
    