add Access-Control-Allow-Origin

This commit is contained in:
Arnaud Roques
2018-03-20 19:13:37 +01:00
parent 7ad8b8033d
commit 263bbf59da

View File

@@ -77,6 +77,7 @@ class DiagramResponse {
}
void sendDiagram(String uml, int idx) throws IOException {
response.addHeader("Access-Control-Allow-Origin", "*");
response.setContentType(getContentType());
SourceStringReader reader = new SourceStringReader(uml);
if (format == FileFormat.BASE64) {