CORS allowed for all origins in "/api"

pull/20/head
pabloFuente 2017-09-26 12:24:51 +02:00
parent 7ecd70f7d5
commit 681309ecfb
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import org.json.simple.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@ -38,6 +39,7 @@ import io.openvidu.server.security.ParticipantRole;
* @author Raquel Díaz González
*/
@RestController
@CrossOrigin(origins = "*")
@RequestMapping("/api")
public class RoomController {