Class LocalhostProxyConfiguration


  • @Configuration
    @EnableConfigurationProperties(EsiDialectProperties.class)
    @ConditionalOnProperty(prefix="esiinclude-thymeleaf-dialect",
                           value="proxy-enabled",
                           havingValue="true")
    public class LocalhostProxyConfiguration
    extends java.lang.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.

    • Method Summary

      Modifier and Type Method Description
      LocalhostProxy localhostProxy​(EsiDialectProperties esiDialectProperties, Fetch fetch)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocalhostProxyConfiguration

        public LocalhostProxyConfiguration()