package com.opentable.jaxrs;

import org.jboss.resteasy.plugins.interceptors.CorsFilter;

import javax.inject.Inject;
import javax.inject.Singleton;
import javax.ws.rs.ext.Provider;

@Singleton
@Provider
class OTCorsFilter extends CorsFilter
{
    @Inject
    OTCorsFilter()
    {
        getAllowedOrigins().add("*");
    }
}

@@ -142,16 +142,58 @@
 gleton;%0A
+import javax.ws.rs.container.PreMatching;%0A
 import j
@@ -239,16 +239,29 @@
 rovider%0A
+@PreMatching%0A
 class OT

Mark OTCorsFilter as @PreMatching