add Access-Control-Allow-Origin
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user