Ignore:
Timestamp:
Feb 8, 2015, 5:09:00 PM (9 years ago)
Author:
casties
Branch:
default
Children:
92:aadf8760216d, 94:fcb6fe10e08c
Message:

let CORS be handled by Restlet 2.3 CorsFilter?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotationsByResources.java

    r88 r91  
    5050 */
    5151public class AnnotatorAnnotationsByResources extends AnnotatorResourceImpl {
    52     protected String getAllowedMethodsForHeader() {
    53         return "OPTIONS,GET";
    54     }
    5552
    5653    @Get("json")
    5754    public Representation doGetJSON(Representation entity) {
    5855        logger.fine("AnnotatorAnnotatonsByResource doGetJSON!");
    59         setCorsHeaders();
    6056
    6157        // do authentication
Note: See TracChangeset for help on using the changeset viewer.