Allowed Origins
Configure Pterodactyl Wings to accept connections from your PteroCA panel.
Overview
Allowed origins is a critical security setting in Pterodactyl that controls which domains are allowed to interact with your Wings instance. This must be configured to enable:
Server console access
Real-time statistics monitoring
Server startup configuration
WebSocket connections
Without this configuration, server consoles will not work.
Configure Allowed Origins
Step 1: Open Wings Configuration
Open the Pterodactyl Wings configuration file:
sudo nano /etc/pterodactyl/config.ymlStep 2: Add Allowed Origins
Locate (or create) the allowed_origins section and add your PteroCA panel domain or IP:
Step 3: Save and Restart Wings
After saving the configuration file, restart Wings to apply changes:
Configuration Options
Specific Domain (Recommended)
Most secure approach - Only allow your specific domain:
Multiple Domains
If you have multiple domains pointing to PteroCA:
Wildcard (Not Recommended for Production)
Allows connections from any domain - only use for testing:
Security Warning: Using wildcard (*) allows connections from any domain, which may pose security risks in production environments.
Security Considerations
Production Environment
For production environments:
Use specific domains - Never use wildcard
Use HTTPS - Always use SSL/TLS
Match PteroCA URL - Use the exact domain from your PteroCA site URL
Limit origins - Only add domains you control
Development Environment
For development/testing:
Wildcard is acceptable -
*can be used temporarilySwitch before production - Always update before going live
Document changes - Note what allowed origins are configured
Troubleshooting
Console Not Connecting
Symptom: Server console shows "Connection failed" or doesn't load
Solutions:
Verify allowed origins is configured
Check PteroCA site URL matches
Go to PteroCA Admin Panel → Settings → General
Note the Site URL
Ensure it's in Wings allowed_origins
Restart Wings after changes
Check Wings logs
Mixed Content Errors
Symptom: Console fails with mixed content error
Cause: PteroCA uses HTTPS but Pterodactyl uses HTTP (or vice versa)
Solution:
Both PteroCA and Pterodactyl must use same protocol (both HTTPS recommended)
WebSocket Connection Failed
Symptom: "WebSocket connection failed" in browser console
Solutions:
Check firewall allows WebSocket port (usually 8080 or 443)
Verify Wings is running
Check Wings config has correct external address
Cloudflare Proxy Issues
Symptom: Console works without Cloudflare but fails with it enabled
Solution:
Enable WebSocket in Cloudflare
Go to Cloudflare Dashboard → Network
Enable WebSocket
Use Cloudflare's Spectrum (if available)
Create Spectrum app for Wings port
Point to Wings server IP:8080
Or disable Cloudflare proxy for Wings subdomain
Set DNS record to "DNS only" (grey cloud)
Advanced Configuration
Custom Wings Port
If Wings uses a custom port:
Ensure firewall allows the custom port:
Multiple Wings Instances
If using multiple Wings instances, add origins for all of them:
Reverse Proxy Configuration
If using a reverse proxy (like NGINX) in front of Wings:
Testing Console Access
After configuring allowed origins:
Log into PteroCA
Navigate to a server
Click on Console tab
Verify console loads and shows output
Test sending a command
If console still doesn't work, check these additional causes:
Reverse proxy configuration
SSL mismatches
Firewall rules
Network connectivity
For more troubleshooting help, see Runtime Issues.
Related Guides
Pterodactyl API Configuration - Set up API integration
SSL Configuration - Enable HTTPS
Troubleshooting - Common issues
Last updated