Current versus Expected behavior
I’ve set up restrictions on the Google API to only allow requests from my website by specifying the website URL. However, when I deploy the app on Vercel, the restriction seems to block access from the website. The app works fine in the deployed environment if I remove the restriction, but I’d prefer to keep it in place for security. Could you please advise on how I can resolve this issue?
Code, configuration, and steps that reproduce this issue
Vercel Deploy Plan: → Hobby
Steps to reproduce:
- Go to Google API dashborad
- Choose my API key for this project
- Go to Restriction section
- Choose website
- Add website: *.example.vercel.app/*
- Save
Project information
Environment (local, preview, production): production
Node/Runtime Version: node 20.x
Package Manager: npm
Project Framework: Next.js v14