mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-06-01 08:00:48 +00:00
add Access-Control-Allow-Origin
This commit is contained in:
parent
7ad8b8033d
commit
263bbf59da
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user