You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Actually when using plantuml as a service server to convert plantuml to image, several kind of CORS error are raised.
Describe the solution you'd like
We should be able to setup CORS during the deployment wihtout rebuilding entirely the application, or modifying the deployment directory content.
Proposal
I only consider a deployment in tomcat as a war file. It's really JEE so I can be transposed to jetty. I hope this helps. At least it works as I "like", but maybe not as everybody like.
How to setup CORS
Use a .xml file in the conf/Catalina/localhost add variables to the JNDI which is accessible from Servlets.
Remove old code
Remove all previous code in DiagramResponse and servlets : response.addHeader("Access-Control-Allow-Origin", "*");
Add doOptions methods in servlets
It does nothing but Parent servlet do introspection to know which methods are implemented and add them in the header.
Is your feature request related to a problem? Please describe.
Actually when using plantuml as a service server to convert plantuml to image, several kind of CORS error are raised.
Describe the solution you'd like
We should be able to setup CORS during the deployment wihtout rebuilding entirely the application, or modifying the deployment directory content.
Proposal
I only consider a deployment in tomcat as a war file. It's really JEE so I can be transposed to jetty. I hope this helps. At least it works as I "like", but maybe not as everybody like.
How to setup CORS
Use a .xml file in the conf/Catalina/localhost add variables to the JNDI which is accessible from Servlets.
Where to implement
In the following code the default values need to be changed to match the desired default behaviour.
Remove all previous code in DiagramResponse and servlets : response.addHeader("Access-Control-Allow-Origin", "*");
It does nothing but Parent servlet do introspection to know which methods are implemented and add them in the header.
The text was updated successfully, but these errors were encountered: