diff --git a/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/AbstractResourceController.java b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/AbstractResourceController.java
new file mode 100644
index 0000000000000000000000000000000000000000..60fe88ca2f00af1a498ccfa25d997a1fb22f2966
--- /dev/null
+++ b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/AbstractResourceController.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2002-2013 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.springframework.samples.petclinic.web;
+
+import org.springframework.web.bind.annotation.CrossOrigin;
+
+/**
+ * @author Antoine Rey
+ */
+@CrossOrigin
+abstract class AbstractResourceController {
+}
diff --git a/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/OwnerResource.java b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/OwnerResource.java
index 2c3a1d8d0ccbc793d676d6f97650078031240437..e37ac3505035d19453da21830e8028f986d6f270 100644
--- a/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/OwnerResource.java
+++ b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/OwnerResource.java
@@ -40,7 +40,7 @@ import javax.validation.Valid;
  * @author Michael Isvy
  */
 @RestController
-public class OwnerResource {
+public class OwnerResource extends AbstractResourceController {
 
     private final ClinicService clinicService;
 
diff --git a/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/PetResource.java b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/PetResource.java
index d3394751ecab7bc65ecc6556d2197b12b7b3355f..192bbfb261ae9623d1d88a6378a0bbdc1d8bf525 100644
--- a/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/PetResource.java
+++ b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/PetResource.java
@@ -35,7 +35,7 @@ import java.util.Map;
  * @author Arjen Poutsma
  */
 @RestController
-public class PetResource {
+public class PetResource extends AbstractResourceController {
 
     private final ClinicService clinicService;
 
diff --git a/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/VetResource.java b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/VetResource.java
index 7661e97f4cd8d360b86c16bba3531e62743f1059..b476a43cd3254b64860b666eeb88b4dcade16b36 100644
--- a/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/VetResource.java
+++ b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/VetResource.java
@@ -33,7 +33,7 @@ import org.springframework.web.bind.annotation.RestController;
  * @author Arjen Poutsma
  */
 @RestController
-public class VetResource {
+public class VetResource extends AbstractResourceController {
 
     private final ClinicService clinicService;
 
diff --git a/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/VisitResource.java b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/VisitResource.java
index 68798f79b65d603b8ceee84480f77eaebe6d15e4..12db83c71b9eb45a63c230c26af0af0973225e2d 100644
--- a/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/VisitResource.java
+++ b/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/web/VisitResource.java
@@ -35,7 +35,7 @@ import javax.validation.Valid;
  * @author Michael Isvy
  */
 @RestController
-public class VisitResource {
+public class VisitResource extends AbstractResourceController {
 
     private final ClinicService clinicService;