> For the complete documentation index, see [llms.txt](https://docs.stacks.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacks.co/reference/api/sbtc-bridge/cors.md).

# CORS

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/chainstate":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/chainstate/{height}":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[{"name":"height","in":"path","description":"Height of the blockchain data to receive.","required":true,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/deposit":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/deposit/recipient/{recipient}":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[{"name":"recipient","in":"path","description":"the recipient to search by when getting all deposits.","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/deposit/reclaim-pubkeys/{reclaimPubkeys}":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[{"name":"reclaimPubkeys","in":"path","description":"The dash-separated list of hex-encoded x-only pubkeys used to generate the reclaim_script.","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/deposit/{txid}":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[{"name":"txid","in":"path","description":"txid associated with the Deposit.","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/deposit/{txid}/{index}":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[{"name":"txid","in":"path","description":"txid associated with the Deposit.","required":true,"schema":{"type":"string"}},{"name":"index","in":"path","description":"output index associated with the Deposit.","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/health":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/limits":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/limits/{account}":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[{"name":"account","in":"path","description":"The account for which to get the limits.","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/start_throttle":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/withdrawal":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/withdrawal/recipient/{recipient}":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[{"name":"recipient","in":"path","description":"The recipient's hex-encoded scriptPubKey, used to filter withdrawals.","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/withdrawal/sender/{sender}":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[{"name":"sender","in":"path","description":"The sender's Stacks principal, used to filter withdrawals.","required":true,"schema":{"type":"string"}}],"responses":{}}}}}
```

## CORS support

> Handles CORS preflight requests

```json
{"openapi":"3.0.3","info":{"title":"emily-openapi-spec","version":"0.1.0"},"servers":[{"url":"http://localhost:3031","description":"Local Emily server"},{"url":"https://sbtc-emily.com","description":"Production Emily server"},{"url":"https://temp.sbtc-emily-dev.com","description":"Testnet Emily server"}],"paths":{"/withdrawal/{id}":{"options":{"tags":["CORS"],"summary":"CORS support","description":"Handles CORS preflight requests","parameters":[{"name":"id","in":"path","description":"id associated with the Withdrawal","required":true,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{}}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stacks.co/reference/api/sbtc-bridge/cors.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
