Skip to content

Commit

Permalink
fix origins in decorator (#3007)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Hopkins <[email protected]>
  • Loading branch information
HyperKiko and ahopkins authored Dec 22, 2024
1 parent 0d34d1c commit 1450e6d
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 1450e6d

Please sign in to comment.