Mbst 8719 improve cors filter

Re-using the common AbstractCorsFilter. This will also fix issues with cross origin requests.