Skip to content
Snippets Groups Projects
Commit 9f53a79f authored by Anders Austlid's avatar Anders Austlid
Browse files

Added frontend localhost address to CORS allowed origins

parent 1325de52
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ public class CorsConfig {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins(domainProperty.domain())
.allowedOrigins("http://localhost:5173")
.allowedMethods(Arrays.asList(
HttpMethod.GET.name(),
HttpMethod.POST.name(),
......
......@@ -9,7 +9,7 @@ import ntnu.idatt2016.v233.SmartMat.entity.Groups;
*
* @author Stian Lyng
* @version 1.0
* @since 04.04.2023
* @since 19.04.2023
*/
public interface GroupRepository extends JpaRepository<Groups, Long> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment