# CORS

The useCORS method allows you to configure the parameters with which CORS will be enabled, which are:

* **AllowOrigins**: Specify a URI that can access the resource. The explorer must ensure this. For requests without credentials, the server must specify `*` as a wildcard, thus allowing access to the resource from any source.&#x20;
* **AllowHeaders**: Indicates which HTTP header can be used when requesting the resource. The wildcard  `*` allows all headers.&#x20;
* **AllowMethods**: Specifies the method or methods allowed when a resource is allocated.&#x20;
* **MaxAge**: This header indicates for how long the results of the verified request can be captured, and therefore it is no longer necessary to carry out the process again.&#x20;

The default values with which the method operates are:

```julia
useCORS(
AllowOrigins = "*"
, AllowHeaders = "Origin, Content-Type, Accept"
, AllowMethods = "GET,POST,PUT,DELETE"
, MaxAge = "178000")
```


---

# Agent Instructions: 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://neomatrixcode.gitbook.io/merly/guide/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.
