Skip to content

Commit

Permalink
allow all methods for cors on debug context (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
keotl committed Dec 22, 2019
1 parent 760b6c1 commit af58570
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jivago/config/debug_jivago_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def __init__(self, root_package: "Module", registry: Registry, banner: bool = Tr
super().__init__(root_package, registry, banner=banner)

def create_router_config(self) -> RouterBuilder:
return super().create_router_config().add_rule(CorsRule("/", {"Access-Control-Allow-Origin": '*', 'Access-Control-Allow-Headers': '*'}))
return super().create_router_config().add_rule(CorsRule("/", {"Access-Control-Allow-Origin": '*',
'Access-Control-Allow-Headers': '*',
'Access-Control-Allow-Methods': '*'}))

@Override
def get_default_filters(self) -> List[Type[Filter]]:
Expand Down

0 comments on commit af58570

Please sign in to comment.