Class CORSContextListener

java.lang.Object
org.alfresco.web.app.servlet.CORSContextListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class CORSContextListener extends Object implements jakarta.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(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • contextDestroyed

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