Show
Ignore:
Timestamp:
23.01.2017 16:01:35 (3 years ago)
Author:
davidb
Message:

Reworked to use CORS and $.ajax() so TamperMonkey? doesn't interceed with security check page. Also relocated bookworm PNG from external site to be within the servlet area.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/vol-checker/WebContent/WEB-INF/web.xml

    r31295 r31331  
    1111  </welcome-file-list> 
    1212   
     13 
     14  <filter> 
     15    <filter-name>cross-origin</filter-name> 
     16    <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class> 
     17    <init-param> 
     18        <param-name>allowedOrigins</param-name> 
     19        <param-value>*</param-value> 
     20    </init-param> 
     21    <init-param> 
     22        <param-name>allowedMethods</param-name> 
     23        <param-value>GET,POST,HEAD</param-value> 
     24    </init-param> 
     25    <init-param> 
     26        <param-name>allowedHeaders</param-name> 
     27        <param-value>X-Requested-With,Content-Type,Accept,Origin</param-value> 
     28    </init-param> 
     29  </filter> 
     30  <filter-mapping> 
     31    <filter-name>cross-origin</filter-name> 
     32    <url-pattern>/*</url-pattern> 
     33  </filter-mapping> 
     34 
     35 
    1336  <servlet> 
    14         <servlet-name>HTRC Volume Check</servlet-name> 
    15         <servlet-class>org.hathitrust.extractedfeatures.VolumeCheck</servlet-class> 
    16     </servlet> 
    17  
    18     <servlet-mapping> 
    19         <servlet-name>HTRC Volume Check</servlet-name> 
    20         <url-pattern>/VolumeCheck</url-pattern> 
    21     </servlet-mapping> 
     37    <servlet-name>HTRC Volume Check</servlet-name> 
     38    <servlet-class>org.hathitrust.extractedfeatures.VolumeCheck</servlet-class> 
     39  </servlet> 
     40  <servlet-mapping> 
     41    <servlet-name>HTRC Volume Check</servlet-name> 
     42    <url-pattern>/VolumeCheck</url-pattern> 
     43  </servlet-mapping> 
    2244   
    2345