Setup CORS with domain
This is my current setup for all of my backend services, this CORS is based on my domain.
(this one is generated by AI, I haven’t fully tested it)
// Enable CORS
app.enableCors({
origin: (origin, callback) => {
// Allow requests with no...
thebrownbox.hashnode.dev1 min read