Skip to content

Commit 85dbfd4

Browse files
committed
tmp: set default LoadConfig methods to None
1 parent a4e9dd4 commit 85dbfd4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/fastapi_csrf_protect/load_config.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ class LoadConfig(BaseModel):
3232
header_type: Optional[StrictStr] = None
3333
httponly: Optional[StrictBool] = True
3434
max_age: Optional[StrictInt] = 3600
35-
methods: Optional[Set[Literal["DELETE", "GET", "OPTIONS", "PATCH", "POST", "PUT"]]] = {
36-
"DELETE",
37-
"PATCH",
38-
"POST",
39-
"PUT",
40-
}
35+
methods: Optional[Set[Literal["DELETE", "GET", "OPTIONS", "PATCH", "POST", "PUT"]]] = None
4136
secret_key: Optional[StrictStr] = None
4237
token_location: Optional[Literal["body", "header"]] = "header"
4338
token_key: Optional[StrictStr] = None

0 commit comments

Comments
 (0)