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

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
