Changeset 880 for trunk/autoquest-htmlmonitor/src/main/java/de
- Timestamp:
- 10/16/12 08:25:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServer.java
r879 r880 1 1 package de.ugoe.cs.autoquest.htmlmonitor; 2 2 3 import org.eclipse.jetty.servlets.CrossOriginFilter; 4 import org.mortbay.jetty.Handler; 3 5 import org.mortbay.jetty.Server; 4 6 import org.mortbay.jetty.servlet.Context; 7 import org.mortbay.jetty.servlet.FilterHolder; 5 8 import org.mortbay.jetty.servlet.ServletHolder; 6 9 … … 78 81 ServletHolder servletHolder = new ServletHolder(servlet); 79 82 root.addServlet(servletHolder, "/*"); 83 84 CrossOriginFilter filter = new CrossOriginFilter(); 85 FilterHolder filterHolder = new FilterHolder(filter); 86 filterHolder.setInitParameter("allowedOrigins", "*"); 87 filterHolder.setInitParameter("allowedMethods", "GET,POST"); 88 root.addFilter(filterHolder, "/*", Handler.ALL); 80 89 } 81 90
Note: See TracChangeset
for help on using the changeset viewer.