Skip to content

Commit fcbaf24

Browse files
authored
Merge pull request #21078 from mvdbeek/allow_cors_data_landing
[25.1] Allow cors on data and tool landing pages
2 parents dc6a6be + e905e5e commit fcbaf24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/galaxy/webapps/galaxy/api/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def get_icon(self, request: Request, tool_id: str, trans: ProvidesHistoryContext
250250
response.headers["Last-Modified"] = last_modified
251251
return response
252252

253-
@router.post("/api/data_landings", public=True)
253+
@router.post("/api/data_landings", public=True, allow_cors=True)
254254
def create_data_landing(
255255
self,
256256
trans: ProvidesUserContext = DependsOnTrans,
@@ -259,7 +259,7 @@ def create_data_landing(
259259
tool_landing_request = self.service.data_landing_to_tool_landing(trans, data_landing_request)
260260
return self.landing_manager.create_tool_landing_request(tool_landing_request)
261261

262-
@router.post("/api/tool_landings", public=True)
262+
@router.post("/api/tool_landings", public=True, allow_cors=True)
263263
def create_landing(
264264
self,
265265
trans: ProvidesUserContext = DependsOnTrans,

0 commit comments

Comments
 (0)