calcom / platform-starter-kit

Cal.com Platform: Starter Kit
https://experts.cal.com
MIT License
143 stars 17 forks source link

fix(cal): remove any custom `origin` headers in fetches to cal platform api #5

Closed p6l-richard closed 1 month ago

p6l-richard commented 1 month ago

What it does

Requests to Cal's Platform api fail if the Origin header isn't properly set or if the origin header isn't set as a redirectUri.

Before, we issues some custom fetch calls from the server setting the Origin header to an environment variable (domain to which we deploy).

This now changes, as the above mentioned check only applies if the header is provided (which is the case in the browser). However, on the server, we don't have to set any Origin header.


Problem

image

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
starter ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2024 1:22pm