diff --git a/src/main/java/com/example/onomatopoeiaback/security/NoPopupBasicAuthenticationEntryPoint.java b/src/main/java/com/example/onomatopoeiaback/security/NoPopupBasicAuthenticationEntryPoint.java index b008afe..8ecf956 100644 --- a/src/main/java/com/example/onomatopoeiaback/security/NoPopupBasicAuthenticationEntryPoint.java +++ b/src/main/java/com/example/onomatopoeiaback/security/NoPopupBasicAuthenticationEntryPoint.java @@ -12,8 +12,7 @@ public class NoPopupBasicAuthenticationEntryPoint implements AuthenticationEntry @Override public void commence(HttpServletRequest request, HttpServletResponse response, - AuthenticationException authException) throws IOException, ServletException { - + AuthenticationException authException) throws IOException { response.sendError(HttpServletResponse.SC_FORBIDDEN, authException.getMessage()); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 54ba5a1..f5a05d1 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -8,4 +8,6 @@ spring.datasource.url=jdbc:postgresql://localhost:5432/postgres spring.datasource.username=postgres spring.datasource.password=MobileDev spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect -spring.jpa.hibernate.ddl-auto=update \ No newline at end of file +spring.jpa.hibernate.ddl-auto=update +# set up https +server.forward-headers-strategy=framework \ No newline at end of file