https://www.npmjs.com/package/cors
Mentions:
- use cases where it can be used.
- all domains allowed
- cors for a single route
- cors with dynamic origin
Although not boldly highlighted:
'origin parameter' can be specified as:
- string
- regex
- array of the above two
- function for origin to be determined at runtime