Project

General

Profile

« Previous | Next » 

Revision 53590

Added by Tsampikos Livisianos over 5 years ago

fix cors

View differences:

CommunityController.java
5 5

  
6 6
import org.apache.log4j.Logger;
7 7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.web.bind.annotation.CrossOrigin;
8 9
import org.springframework.web.bind.annotation.PathVariable;
9 10
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RequestMethod;
10 12
import org.springframework.web.bind.annotation.RestController;
11 13

  
12 14
@RestController
15
@CrossOrigin(methods = RequestMethod.GET, origins = "*")
13 16
public class CommunityController {
14 17
    @Autowired
15 18
    private CommunityRepository communityRepository;

Also available in: Unified diff