Class CORSContextListener

java.lang.Object
org.alfresco.web.app.servlet.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 Details

    • CORSContextListener

      public CORSContextListener()
  • Method Details

    • 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