From 99d6c53b901d2fdd3926652ef789f08a550fa920 Mon Sep 17 00:00:00 2001 From: Daniil Makeev Date: Wed, 19 Feb 2025 15:44:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA?= =?UTF-8?q?=D0=B0=20https=20=D0=B4=D0=BB=D1=8F=20=D0=B4=D0=B5=D0=BF=D0=BB?= =?UTF-8?q?=D0=BE=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/NoPopupBasicAuthenticationEntryPoint.java | 3 +-- src/main/resources/application.properties | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) 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