YARN-2512. Allowed pattern matching for origins in CrossOriginFilter. Contributed by Jonathan Eagles.

(cherry picked from commit a092cdf32de4d752456286a9f4dda533d8a62bca)