Skip to content

Commit

Permalink
fix origins in decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperKiko authored Oct 30, 2024
1 parent da1c646 commit cc13acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guide/content/en/plugins/sanic-ext/http/cors.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The true power of CORS protection, however, comes into play once you start confi

The values that can be overridden with this decorator are:

- `origins`
- `origin`
- `expose_headers`
- `allow_headers`
- `allow_methods`
Expand All @@ -83,7 +83,7 @@ The true power of CORS protection, however, comes into play once you start confi
app.config.CORS_ORIGINS = "https://foo.com"

@app.get("/", host="bar.com")
@cors(origins="https://bar.com")
@cors(origin="https://bar.com")
async def hello_world(request):
return text("Hello, world.")
```
Expand Down

0 comments on commit cc13acb

Please sign in to comment.