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.
  • Loading branch information
YPCrumble committed May 20, 2021
1 parent 9fae3e5 commit 85a1eb6
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:*", "https://example.com"])`.
Default : '*'
:type origins: list, string or regex
Expand Down

0 comments on commit 85a1eb6

Please sign in to comment.