Skip to content

Commit 1450e6d

Browse files
HyperKikoahopkins
andauthored
fix origins in decorator (#3007)
Co-authored-by: Adam Hopkins <[email protected]>
1 parent 0d34d1c commit 1450e6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • guide/content/en/plugins/sanic-ext/http

guide/content/en/plugins/sanic-ext/http/cors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The true power of CORS protection, however, comes into play once you start confi
6868

6969
The values that can be overridden with this decorator are:
7070

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

8585
@app.get("/", host="bar.com")
86-
@cors(origins="https://bar.com")
86+
@cors(origin="https://bar.com")
8787
async def hello_world(request):
8888
return text("Hello, world.")
8989
```

0 commit comments

Comments
 (0)