mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-31 22:11:53 +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, "Cache-Control: no-cache");
|
||||||
write(out, "Server: PlantUML PicoWebServer " + Version.versionString());
|
write(out, "Server: PlantUML PicoWebServer " + Version.versionString());
|
||||||
write(out, "Date: " + new Date());
|
write(out, "Date: " + new Date());
|
||||||
|
write(out, "Access-Control-Allow-Origin: *");
|
||||||
write(out, "Content-type: " + fileFormatOption.getFileFormat().getMimeType());
|
write(out, "Content-type: " + fileFormatOption.getFileFormat().getMimeType());
|
||||||
write(out, "Content-length: " + fileData.length);
|
write(out, "Content-length: " + fileData.length);
|
||||||
write(out, "X-PlantUML-Diagram-Width: " + imageData.getWidth());
|
write(out, "X-PlantUML-Diagram-Width: " + imageData.getWidth());
|
||||||
|
Loading…
Reference in New Issue
Block a user