gfa-cc-after / Pet-Clinic-GilmoreDevs

Pet clinic project made by group 2
https://frontend-production-e146.up.railway.app/
GNU General Public License v3.0
2 stars 0 forks source link

CORS should be configurable #49

Closed markkovari closed 2 months ago

markkovari commented 3 months ago

We don't want our application to have literals or a need to be rebuilt to change CORS config for example. This should be read from application.properties.

Like this : https://github.com/gfa-cc-after/StudyGroup_1_PET_Clinic_Backend-main/blob/801664cc0e588c1bfbc090ad747b619ea0f93fb1/src/main/java/com/greenfox/dramacsoport/petclinicbackend/config/SecurityConfig.java#L56-L66

https://github.com/gfa-cc-after/Pet-Clinic-GilmoreDevs/blob/521b6b80c84688fbf657ce782a3056b215e9cd65/backend/src/main/java/com/greenfoxacademy/backend/config/SecurityConfig.java#L29