Skip to content

Commit

Permalink
Merge pull request #88 from Grupo13-PES-Mascotas/release/v2.1.0
Browse files Browse the repository at this point in the history
Release/v2.1.0
  • Loading branch information
santidrj authored Jun 6, 2020
2 parents 5059bf2 + b656527 commit d877faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurer() {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**").allowedOrigins("http://localhost:4200", "https://localhost:4200",
"https://my-pet-care-web.herokuapp.com", "http://my-pet-care-web.herokuapp.com");
registry.addMapping("/**").allowedOrigins("*");
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
@RestController
@RequestMapping("/pet")
@CrossOrigin(origins = "http://localhost:4200")
@CrossOrigin(origins = "*")
public class PetRestController {
@Autowired
private PetService petService;
Expand Down

0 comments on commit d877faf

Please sign in to comment.