// troubleshooting guide · bolt.new

Bolt.new Missing Secrets and CORS Errors

Status
Workaround available
platforms:
Web
updated:
November 15, 2026
reports:
3
Method
how we research
Share

RUNBOOK · bolt-new/missing-secrets-and-cors-errors3 FIXES

// quick answer

API calls from server functions fail when secrets are missing or CORS headers are wrong. Add secrets via the database icon and check Access-Control headers.

Most likely fix: Add missing secrets

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Add missing secrets

    1. 01Database icon > Secrets
    2. 02Name exactly as code expects, e.g. OPENAI_API_KEY
    3. 03Save; no redeploy needed
    Did this fix it?
  2. FIX 2Check CORS

    1. 01Open DevTools Network tab
    2. 02Verify Access-Control-Allow-Origin, -Methods and -Headers in your function
    Did this fix it?
  3. FIX 3Webhooks

    1. 01Ask Bolt to turn off JWT verification for the webhook function
    2. 02Add your own signature check
    Did this fix it?

Symptoms

Missing secrets message, blocked requests, webhook rejected.

Why it happens

  • C-01Secret not created or misnamed
  • C-02CORS not allowing your domain
  • C-03Webhook sent without JWT

// this guide also covers

  • bolt.new cors error
  • bolt.new missing secrets
  • bolt.new stripe webhook

Still not working?

If Bolt.new keeps failing, you're not alone. See every Bolt.new problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch Bolt.new Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All missing or lost data guides →

Other Bolt.new errors

All 10 Bolt.new errors and fixes →