mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
Setting CORS
This commit is contained in:
parent
ac9d76cda6
commit
d926c4bfcb
@ -223,6 +223,7 @@ public class PicoWebServer implements Runnable {
|
||||
write(out, "Cache-Control: no-cache");
|
||||
write(out, "Server: PlantUML PicoWebServer " + Version.versionString());
|
||||
write(out, "Date: " + new Date());
|
||||
write(out, "Access-Control-Allow-Origin: *");
|
||||
write(out, "Content-type: " + fileFormatOption.getFileFormat().getMimeType());
|
||||
write(out, "Content-length: " + fileData.length);
|
||||
write(out, "X-PlantUML-Diagram-Width: " + imageData.getWidth());
|
||||
|
Loading…
Reference in New Issue
Block a user