Project

General

Profile

Download (651 Bytes) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.cdm.remote.controller;
2

    
3
import org.springframework.http.HttpStatus;
4
import org.springframework.http.ResponseEntity;
5
import org.springframework.stereotype.Controller;
6
import org.springframework.web.bind.annotation.CrossOrigin;
7
import org.springframework.web.bind.annotation.RequestMapping;
8
import org.springframework.web.bind.annotation.RequestMethod;
9

    
10
@CrossOrigin(origins = "*", maxAge = 3600)
11
@Controller
12
public class OptionsController {
13

    
14
	@RequestMapping(
15
            value = "/**",
16
            method = RequestMethod.OPTIONS
17
    )
18
    public ResponseEntity handle() {
19
        return new ResponseEntity(HttpStatus.OK);
20
    }
21

    
22
}
(40-40/73)