Skip to Content

Setup CORS For Your Endpoint

Accessing your Spectrum endpoint from a web application running in the browser will likely require CORS configuration to allow your frontend to connect successfully.

What is CORS?

CORS (Cross-Origin Resource Sharing) is a browser security feature that restricts web pages from making requests to a different domain than the one that served the web page.

By setting the correct CORS policy on your endpoint, you can allow trusted domains (like your frontend app) to interact with your Spectrum endpoint securely.

Step 1: Log in to Your Dashboard

  1. Visit: dashboard.spectrumnodes.com
  2. Enter your user credentials if logged out.

Step 2: Navigate to Endpoint Details

  1. Identify which endpoint you want to configure in your Nodes dashboard.
  2. Click the > arrow icon right of your desired endpoint to view more details.

Endpoint created

Endpoint regions

Step 3: Add Domains

  1. Scroll down and select Add domains in the Whitelisted Domains (CORS) tile.

Step 4: Enter Your Domains

  1. Type your Domains and Press Enter after each one to add them.
  2. Click Save Whitelist to confirm your new CORS policy.

CORS domains configuration

Best Practices

  • Only allow trusted domains.
  • Avoid wildcards (*) in production environments.
  • Update your CORS settings if your frontend URL changes.
  • Use CORS alongside other security measures (e.g., IP Whitelisting, rate limits).