Skip to content

Commit

Permalink
rely only on cors middleware (linkedin#387)
Browse files Browse the repository at this point in the history
* upgrade to python 3.10

* readd irisclient

* python 3.10 updates

* readd falcon-cors

* flake8

* remove streql

* fix login tests

* teak dependencies

* use falcon App instead of API

* update login test

* rely only on cors middleware

* update version

* version change
  • Loading branch information
diegocepedaw authored Jan 5, 2023
1 parent 8f00b4c commit 1eb1758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oncall/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def init_falcon_api(config):
]
if config.get('require_auth'):
middlewares.append(AuthMiddleware())
application = falcon.App(middleware=middlewares, cors_enable=True)
application = falcon.App(middleware=middlewares)
application.req_options.auto_parse_form_urlencoded = False
application.set_error_serializer(json_error_serializer)
application.req_options.strip_url_path_trailing_slash = True
Expand Down

0 comments on commit 1eb1758

Please sign in to comment.