Skip to content
Snippets Groups Projects
Commit 3d01b295 authored by Barbora Kompišová's avatar Barbora Kompišová
Browse files

CORS restriction

parent 33b18bb2
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ from storage import Storage
db = SQLAlchemy()
jwt = JWTManager()
oauth = OAuth()
cors = CORS(resources={f"*": {"origins": "*"}})
cors = CORS(resources=r'*', origins=[r'http://localhost:4200/*', 'https://*.pstanko.net/*'], supports_credentials=True)
# TODO - urgent
storage = Storage({
"submissions_dir": "todo",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment