Hello,
I tried to
enable Jetty to accepts CORS requests by adding to web.xml, the following
lines:
<filter>
<filter-name>cross-origin</filter-name>
<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
<init-param>
<param-name>allowedOrigins</param-name>
<param-value></param-value>
</init-param>
<init-param>
<param-name>allowedMethods</param-name>
<param-value></param-value>
</init-param>
<init-param>
<param-name>allowedHeaders</param-name>
<param-value></param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>cross-origin</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
However,
now when I try to start BaseX 7.9 Server, I only get a message “Can’t communicate
with the server”. The message persists even though I removed the added lines to
web.xml and restarted my PC (I’m on Win8).
Could you
please give me some light on how can I get BaseX Server to work again? And, how
can I enable BaseX/Jetty Server for CORS requests?
Thank you
very much for any help.
Regards,
Alex