Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
Reverted to wildcard CORs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed Apr 4, 2019
1 parent d19fa9c commit 2aaccfc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
04-APR-2018: 5

- Removes referrer limitation for responses
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,19 @@ else if (ref != null && ref.toLowerCase()

if (dom == null)
{
response.setStatus(HttpServletResponse.SC_FORBIDDEN);
// response.setStatus(HttpServletResponse.SC_FORBIDDEN);
// DB commented out 04.04.19
// Prevented working on Confluence Servers
response.addHeader("Access-Control-Allow-Origin", "*");
response.addHeader("Access-Control-Allow-Methods", "GET");
}
else
{
response.addHeader("Access-Control-Allow-Origin", dom);
response.addHeader("Access-Control-Allow-Methods", "GET");

doDiagramResponse(request, response, uml, idx);
}

doDiagramResponse(request, response, uml, idx);
}

private void doDiagramResponse(
Expand Down

0 comments on commit 2aaccfc

Please sign in to comment.