KaidiMohammed
KaidiMohammed
Hey, Try this , cause I think u must pass a function rather than an array ``` var allowedOrigins = ['http://localhost:3000', 'http://yourapp.com']; app.use(cors({ origin: function(origin, callback){ // allow requests with...
> Even when i copy pasted the code i got this error Error: Functions are not valid as a child of Client Components. This may happen if you return children...
> Thanks for sharing a potential solution. I'll eventually get to looking at this but would be happy to review a PR if either of you are interested! sure