From eb44bffc76f49e5bb8692e96a37e11ebee070cf0 Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Wed, 23 Oct 2024 11:30:11 -0400 Subject: [PATCH] fix: typos (#371) Co-authored-by: Kevin Kirsche --- flask_cors/core.py | 2 +- flask_cors/extension.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_cors/core.py b/flask_cors/core.py index 3fcc4d3..1a54d50 100644 --- a/flask_cors/core.py +++ b/flask_cors/core.py @@ -137,7 +137,7 @@ def get_cors_origins(options, request_origin): if wildcard: # If wildcard is in the origins, even if 'send_wildcard' is False, # simply send the wildcard. Unless supports_credentials is True, - # since that is forbidded by the spec.. + # since that is forbidden by the spec.. # It is the most-likely to be correct thing to do (the only other # option is to return nothing, which almost certainly not what # the developer wants if the '*' origin was specified. diff --git a/flask_cors/extension.py b/flask_cors/extension.py index abf5caf..32e9d7b 100644 --- a/flask_cors/extension.py +++ b/flask_cors/extension.py @@ -144,7 +144,7 @@ class CORS(object): will be set with the value 'true' whenever the request header `Access-Control-Request-Private-Network` has a value 'true'. - If False, the reponse header `Access-Control-Allow-Private-Network` + If False, the response header `Access-Control-Allow-Private-Network` will be set with the value 'false' whenever the request header `Access-Control-Request-Private-Network` has a value of 'true'.