Skip to content

Commit

Permalink
CORS should work for imagemaps too.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadrian authored and arnaudroques committed Jun 29, 2022
1 parent 4c76f03 commit dcc06f9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public void sendMap(String uml, int idx) throws IOException {
if (idx < 0) {
idx = 0;
}
response.addHeader("Access-Control-Allow-Origin", "*");
response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml);
final BlockUml blockUml = reader.getBlocks().get(0);
Expand Down

0 comments on commit dcc06f9

Please sign in to comment.