SameSite=None
This commit is contained in:
parent
983b59b508
commit
4ad0fc2a94
6 changed files with 82 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Qualifier;
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
|
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
|
||||||
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
|
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
|
||||||
|
import org.springframework.boot.web.servlet.server.CookieSameSiteSupplier;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.http.converter.HttpMessageConverter;
|
import org.springframework.http.converter.HttpMessageConverter;
|
||||||
|
|
@ -75,4 +76,9 @@ public class WebConfig implements WebMvcConfigurer {
|
||||||
public RequestContextListener requestContextListener() {
|
public RequestContextListener requestContextListener() {
|
||||||
return new RequestContextListener();
|
return new RequestContextListener();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public CookieSameSiteSupplier applicationCookieSameSiteSupplier() {
|
||||||
|
return CookieSameSiteSupplier.ofNone();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
server.port=8080
|
server.port=8080
|
||||||
server.servlet.context-path=/backend-api
|
server.servlet.context-path=/backend-api
|
||||||
|
server.ssl.key-store-type=PKCS12
|
||||||
|
server.ssl.key-store=classpath:keystore/client.p12
|
||||||
|
server.ssl.key-store-password=Aa123456
|
||||||
|
server.ssl.enabled=true
|
||||||
spring.main.web-application-type=servlet
|
spring.main.web-application-type=servlet
|
||||||
|
|
||||||
backend-api.example-setting=test
|
backend-api.example-setting=test
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package ru.spcex.platform.enumeration;
|
||||||
|
|
||||||
|
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||||
|
|
||||||
|
public enum CurrencyCode implements IEnumKey {
|
||||||
|
RUB("RUB");
|
||||||
|
|
||||||
|
private final String key;
|
||||||
|
|
||||||
|
CurrencyCode(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package ru.spcex.platform.enumeration;
|
||||||
|
|
||||||
|
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||||
|
|
||||||
|
public enum InOutSDfType implements IEnumKey {
|
||||||
|
type1("0102");
|
||||||
|
|
||||||
|
private final String key;
|
||||||
|
|
||||||
|
InOutSDfType(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package ru.spcex.platform.enumeration;
|
||||||
|
|
||||||
|
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||||
|
|
||||||
|
public enum OperationStatus implements IEnumKey {
|
||||||
|
Pending("PEND");
|
||||||
|
|
||||||
|
private final String key;
|
||||||
|
|
||||||
|
OperationStatus(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package ru.spcex.platform.enumeration;
|
||||||
|
|
||||||
|
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||||
|
|
||||||
|
public enum StatementType implements IEnumKey {
|
||||||
|
full("FULL");
|
||||||
|
|
||||||
|
private final String key;
|
||||||
|
|
||||||
|
StatementType(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue