CORS via API group managment VS pre-middleware

Hey all!

I've seen two ways to set CORS security and I wonder if there are any pros and cons to condsider here

The API group CORS management seems convinient and out of the box yet I didn't see any Xano video about it

The pre-middle ware is explained in some videos and seems convenient if installed for the entire workspace

  • I worry about running all of my APIs through a pre-middleware because that means I will need to adjust how I approach my inputs all over the system, right?

Would love to hear you thoughts on this matter

Thanks!

3 replies