Issues Fetching Filtered CMS Items via Serverless Function Due to CORS Policy

Thanks so much for getting back, Michael.

I’m looking to generate the list of tabs and have them styled differently if:

  1. There are no dates
  2. There are some dates and the tab is inactive
  3. The tab is active.

I want to automatically generate tabs for the next 14 days whether there are dates or not in my Events collection.

Thought using server-less function would help deal with Webflow’s CORS policy and also allow me to store my Collection ID and API Key as environment variables in Vercel vs Webflow front-end.

This is the experience i’m trying to replicate: Today at Apple - Calendar - Apple

Thanks for sharing those, links. I’ll take a look and let you know if I have any questions!