Skip to content

Commit

Permalink
Add argument 'origins' to Cors docs (#710)
Browse files Browse the repository at this point in the history
* Replace  params by path_params in param tests

* Replace body attribute in Response Object in the docs

* Add argument 'origins' to ALLOW_CORS

* Fix typo in cors.mdx

* Fix origins argument cors.mdx
  • Loading branch information
carlosm27 authored Dec 18, 2023
1 parent 74adace commit 817f4da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs_src/src/pages/documentation/api_reference/cors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ You can allow CORS for your application by adding the following code:
from robyn import Robyn, ALLOW_CORS

app = Robyn(__file__)
ALLOW_CORS(app)
ALLOW_CORS(app, origins = ["http://localhost:<PORT>/"])
```

```python {{ title: 'typed' }}
from robyn import Robyn, ALLOW_CORS

app = Robyn(__file__)
ALLOW_CORS(app)
ALLOW_CORS(app, origins = ["http://localhost:<PORT>/"])
```

</CodeGroup>
Expand Down

0 comments on commit 817f4da

Please sign in to comment.