I have added my domain (www.imarcusnote.com) to the authorized list and I am sending the x-site-id header from my Framer site to my Vercel API, but I still get a 'Missing header x-site-id' error. Is there an issue with my App ID recognition?
I have added my domain (www.imarcusnote.com) to the authorized list and I am sending the x-site-id header from my Framer site to my Vercel API, but I still get a 'Missing header x-site-id' error. Is there an issue with my App ID recognition?
1 comment
Hi Hamkwangcheon9,
I took a look at your account and app setup for l-marcusnote (with some help from AI).
To answer your question directly: There is no issue with your App ID recognition on Memberstack's end. Your App ID (
app_cmmm5k2i6007f0ttcejo13pcg) is active, and your domains (imarcusnote.comandwww.imarcusnote.com) are correctly added to your app's authorized list.The
"Missing header x-site-id"error you are seeing is almost certainly happening between your Framer frontend and your Vercel API, or it's a CORS/formatting issue.Here is what you need to know to fix this:
1. The Error is Originating from Your Vercel API
Memberstack's public Admin APIs use
X-API-KEYfor authentication, notx-site-id. If your Vercel API requiresx-site-id(perhaps to forward requests to Memberstack's internal APIs or to identify the app), your Vercel server is rejecting the request because it isn't receiving that header from your Framer site.2. Check Your CORS Configuration on Vercel
If you are sending the header from Framer using
fetchoraxios, the browser might be stripping the customx-site-idheader before it reaches Vercel because of CORS (Cross-Origin Resource Sharing) policies.Access-Control-Allow-Headers: x-site-id, Content-Type, Authorization3. Header Case Sensitivity
If you are using Node.js on your Vercel backend, keep in mind that Node automatically converts all incoming HTTP headers to lowercase.
req.headers['X-Site-Id']orreq.headers['X-SITE-ID'], it will return undefined.req.headers['x-site-id'].A Quick Note on Framer Support
Please keep in mind that Framer is not officially supported by Memberstack. Because Framer is a closed ecosystem that doesn't natively support custom data attributes in the same way platforms like Webflow do, standard Memberstack features (like our pre-built modals and data attributes) will not work out-of-the-box.
Next Steps: I recommend checking the Network tab in your browser's developer tools when you trigger the request from Framer. Look at the "Request Headers" for that specific API call to Vercel and verify if
x-site-id: app_cmmm5k2i6007f0ttcejo13pcgis actually being attached and sent. If it's not there, the issue is in the Framer frontend fetch request.Please sign in to leave a comment.