Add a filter in order to respond with http status code 204 and cors headers, when an OPTIONS request is received.