Skip to content

Commit

Permalink
Adicionando controle de cors
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosouzafaria committed Nov 20, 2018
1 parent ae952c4 commit 5e56abf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
Expand All @@ -14,6 +15,7 @@
import br.com.mantendoofoco.model.Tarefa;
import br.com.mantendoofoco.repository.TarefaRepository;

@CrossOrigin
@RestController
@RequestMapping("/tarefas")
public class TarefaResource {
Expand Down

0 comments on commit 5e56abf

Please sign in to comment.