Skip to content

Commit

Permalink
Merge pull request #85 from Grupo13-PES-Mascotas/feature/cors_configu…
Browse files Browse the repository at this point in the history
…ration

Feature/cors configuration
  • Loading branch information
santidrj authored Jun 5, 2020
2 parents a1ebf81 + 08e887a commit 7d6d018
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.pesmypetcare.webservice.service.petmanager.PetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
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.PathVariable;
Expand All @@ -24,6 +25,7 @@
*/
@RestController
@RequestMapping("/pet")
@CrossOrigin(origins = "http://localhost:4200")
public class PetRestController {
@Autowired
private PetService petService;
Expand Down

0 comments on commit 7d6d018

Please sign in to comment.