OPTIONS Allowlist
Learn how to disable Deployment Protection for CORS preflight requests for a list of paths.OPTIONS Allowlist is available on all plans
You can use OPTIONS Allowlist to disable Deployment Protection (including Vercel Authentication, Password Protection, and Trusted IPs) on any incoming CORS preflight OPTIONS
request for a list of paths.
When you add a path to OPTIONS Allowlist, any incoming request with the method OPTIONS
that starts with the path will no longer be covered by Deployment Protection. When you remove a path from OPTIONS Allowlist, the path becomes protected again with the project's Deployment Protection settings.
For example, if you specify /api
, all requests to paths that start with /api
(such as /api/v1/users
and /api/v2/projects
) will be unprotected for any OPTIONS
request.
From your Vercel dashboard:
- Select the project that you wish to enable Password Protection for
- Go to the Settings tab, and then to Deployment Protection
From the OPTIONS Allowlist section, enable the toggle labelled Disabled:
Specify a path to add to the OPTIONS Allowlist:
To add more paths, select Add path:
Once all the paths are added, select Save
From your Vercel dashboard:
- Select the project that you wish to enable Password Protection for
- Go to the Settings tab, and then to Deployment Protection
From the OPTIONS Allowlist section, select the toggle labelled Enabled:
Once all the paths are added, select Save
Was this helpful?