> For the complete documentation index, see [llms.txt](https://neomatrixcode.gitbook.io/merly/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neomatrixcode.gitbook.io/merly/guide/cors.md).

# 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")
```
