Skip to content

Commit

Permalink
Merge pull request #268 from ICRAR/fix_cors_issue
Browse files Browse the repository at this point in the history
Add CORS headers to index URL used in URL check.
  • Loading branch information
myxie committed Jun 21, 2024
2 parents a055a77 + eba5bd3 commit d2262f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions daliuge-engine/dlg/manager/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,12 @@ def getNodeGraphStatus(self, node, sessionId):
# ===========================================================================
# non-REST methods
# ===========================================================================

@daliuge_aware
def visualizeDIM(self):
"""
Note: this is marked as 'daliuge_aware' in order to get the CORS headers.
"""
tpl = file_as_string("web/dim.html")
urlparts = bottle.request.urlparts
selectedNode = (
Expand Down

0 comments on commit d2262f4

Please sign in to comment.