Skip to content

Commit dbc6b4b

Browse files
committed
Add HEAD to cors as well
1 parent 8822527 commit dbc6b4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/{% if has_backend %}backend{% endif %}/src/backend_api/app_def.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ try:
9696
CORSMiddleware,
9797
allow_origins=["*"], # Super permissive CORS setting since this is for intranet
9898
allow_credentials=True,
99-
allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"],
99+
allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS", "HEAD"],
100100
allow_headers=["*"],
101101
){% endraw %}{% if backend_uses_graphql %}{% raw %}
102102

0 commit comments

Comments
 (0)