pom 中引入:


        
            org.ebaysf.web
            cors-filter
            1.0.1
        

工程web.xml 中增加 过滤器


        CORS Filter
        org.ebaysf.web.cors.CORSFilter
        
            cors.allowed.origins
            *
        
        
            cors.allowed.methods
            GET,POST,HEAD,OPTIONS,PUT
        
        
            cors.allowed.headers
            Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers
        
    
    
        CORS Filter
        /*