- Timestamp:
- 10/16/12 08:25:36 (12 years ago)
- Location:
- trunk/autoquest-htmlmonitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/pom.xml
r879 r880 42 42 </dependency> 43 43 <dependency> 44 <groupId>org. mortbay.jetty</groupId>45 <artifactId>jetty-s slengine</artifactId>46 <version> 6.1.22</version>44 <groupId>org.eclipse.jetty</groupId> 45 <artifactId>jetty-servlets</artifactId> 46 <version>8.1.7.v20120910</version> 47 47 </dependency> 48 48 <dependency> -
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.