Add allowed origins
- In Phantom Portal, go to URL config.
- Find the Allowed origins section.
- Enter your domain (for example,
https://yourapp.com). - Select Add.
- When you add URLs, a message “You have unsaved changes” will appear above the API section with Save or Cancel buttons.
- Click Save to confirm your changes.

Formatting rules
- Include the protocol:
https://for production,http://only for localhost - Match the exact domain: No wildcards or paths such as
/appor/dashboard.
| Environment | Format |
|---|---|
| Production | https://yourapp.com |
| Staging | https://staging.yourapp.com |
| Local development | http://localhost:3000 |
Typical configurations
Most apps use multiple environments. Add each one your app runs on so Phantom can connect correctly.| Environment | Example |
|---|---|
| Production | https://yourapp.com |
| Staging | https://staging.yourapp.com |
| Local development | http://localhost:3000 |