Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow subclassing CorsFilter getAllowedOrigins() and isAnyOriginAllow… #432

Closed
wants to merge 1 commit into from

Conversation

ekkelenkamp
Copy link

I would like to be able to subclass the CorsFilter clases to be able to provide a custom list of allowed origins, instead of configure them from the init parameters. This will allow providing the allowedOrigins at runtime and not hardcoded in the web.xml init parameters.
Unfortunately the method isOriginAllowed uses the instance variable allowedOrigns directly. This makes it impossible to override the available function: getAllowedOrigins and isAnyOriginAllowed.

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

@markt-asf
Copy link
Contributor

I went a little further and ensured getters were used for all configurable fields.

@markt-asf markt-asf closed this Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants