Package de.otto.esidialect
Klasse LocalhostProxyConfiguration
java.lang.Object
de.otto.esidialect.LocalhostProxyConfiguration
@Configuration
@EnableConfigurationProperties(EsiDialectProperties.class)
@ConditionalOnProperty(prefix="esiinclude-thymeleaf-dialect",
value="proxy-enabled",
havingValue="true")
public class LocalhostProxyConfiguration
extends Object
Defines an HTTP proxy that is used to retrieve secondary includes if desired: Esi-included pages might
include resources like CSS and JavaScript files causing CORS errors. Therefore, this proxy sets the HTTP
header Access-Control-Allow-Origin: * on all responses.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunglocalhostProxy(EsiDialectProperties esiDialectProperties, Fetch fetch)
-
Konstruktordetails
-
LocalhostProxyConfiguration
public LocalhostProxyConfiguration()
-
-
Methodendetails
-
localhostProxy
-