[ovirt-users] CORSFilter Web Admin

Zip plord at intricatenetworks.com
Tue Feb 27 22:40:39 UTC 2018


Is there a way to make CORSFilter work for webadmin?

I have tried using the:

engine-config -l | grep CORS
engine-config -s CORSSupport=true
engine-config -s CORSAllowedOrigins=*
service ovirt-engine restart

A look at:

engine-config -l | grep CORS

Looks like support is only for REST API?
- CORSSupport: "Enables CORS (Cross Origin Resource Sharing) support in
RESTAPI.²

I have also tried adding to
/usr/share/ovirt-engine/engine.ear/webadmin.war/WEB-INF/web.xml

   <filter>
       <filter-name>CORSSupport</filter-name>
       
<filter-class>org.ovirt.engine.core.utils.servlet.CORSSupportFilter</filter-
class>
   </filter>

   <filter-mapping>
       <filter-name>CORSSupport</filter-name>
       <url-pattern>/*</url-pattern>
   </filter-mapping>

But that just ends up in Server Errors https://pastebin.com/Q1JECzSw


Thanks for any help ;)

Zip


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180227/fc836f63/attachment.html>


More information about the Users mailing list