Class CORSContextListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    public class CORSContextListener
    extends Object
    implements javax.servlet.ServletContextListener
    The CORSContextListener adds the Tomcat CORS filter org.apache.catalina.filters.CorsFilter which allows to enable/disable and configure Cross-Origin Resource Sharing (CORS) with alfresco properties.
    • Constructor Detail

      • CORSContextListener

        public CORSContextListener()
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener