Skip to content

Commit

Permalink
Include examples to specify that schema and port must be included in …
Browse files Browse the repository at this point in the history
…origins documentation. (#294)
  • Loading branch information
YPCrumble committed Jun 5, 2021
1 parent 9fae3e5 commit dae2eba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flask_cors/extension.py
Expand Up @@ -61,7 +61,11 @@ class CORS(object):
:param origins:
The origin, or list of origins to allow requests from.
The origin(s) may be regular expressions, case-sensitive strings,
or else an asterisk
or else an asterisk.
:note: origins must include the schema and the port (if not port 80),
e.g.,
`CORS(app, origins=["http://localhost:8000", "https://example.com"])`.
Default : '*'
:type origins: list, string or regex
Expand Down

0 comments on commit dae2eba

Please sign in to comment.