> For the complete documentation index, see [llms.txt](https://guides.engels.zip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.engels.zip/pterodactyl-setup/02-creating-urls/02c-setting-up-cors.md).

# 02c) Setting up CORS

### Setting up CORS

Setting up CORS is critical because it is required for the Panel to connect to the Wings. Alternatively, the Wings must be configured to allow connections from the Panel. That is what CORS is for!

There are two choices.

1. [Option 1](/pterodactyl-setup/02-creating-urls/02c-setting-up-cors/02ca-cors-option-1-secure.md): Enabling CORS to only allow connections from the Panel URL only. This is the most secure option, but it may not be compatible with all systems and network configurations.
2. [Option 2](/pterodactyl-setup/02-creating-urls/02c-setting-up-cors/02cb-cors-option-2-failsafe.md): Enabling CORS to allow connections from any URL. This is the "**failsafe**" option because it has a bigger chance of working on more systems and network configurations. However, it is not as safe as the first option.

Still, I would recommend [Option 1](/pterodactyl-setup/02-creating-urls/02c-setting-up-cors/02ca-cors-option-1-secure.md) because it is the most secure!

You should only choose option 2, if the Node doesn't show up as Online, [later in the guide](/pterodactyl-setup/04-connecting-the-wings/04c-final-touches.md).

### On to the next step!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.engels.zip/pterodactyl-setup/02-creating-urls/02c-setting-up-cors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
