https://bz.apache.org/bugzilla/show_bug.cgi?id=65443

--- Comment #7 from ekkelenk...@gmail.com ---
Just to let you know, I found a convenient way to get the job done without
changing the code.
Simply extending the getInitParameter method, does the job. As a reference,
this is the pseudo setup of my code:

/**
 * extended to allow configuration at runtime.
 */
public final class MyCorsFilter extends CorsFilter {

    private static String getCorsAllowedOrigins() {
        return config.getCorsAllowedOrigins(); // get config from database 
    }

    @Override
    public String getInitParameter(String name) {
        if (name.equals("cors.allowed.origins")) {
            return getCorsAllowedOrigins();
        }
        return super.getInitParameter(name);
    }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to