How do I allow multiple domains for CORS in express in a simplified way.
I have
cors: { origin: \"www.one.com\"; } app.all(\'*\', f
I would recommend the cors-module: https://www.npmjs.org/package/cors It does this kind of stuff for you - check the "Configuring CORS w/ Dynamic Origin"-Section