Merged requested to merge cors-headers-fix into master
OPTIONS requests without token always return 401 response code, LegalFilter was fixed to process such requests
https://community.opengroup.org/osdu/ui/admin-ui uses preflight requests for CORS, which cannot be processed , due to lack
Access-Control-Allow-Headers for CORS preflight request.
How to test:
After header added, preflight requests can be processed normally
Refactor (a non-breaking change that improves code maintainability).
Bugfix (a non-breaking change that solves an issue).
New feature (a non-breaking change that adds functionality).
Breaking change (a change that is not backward-compatible and/or changes current functionality).
Added Unit Tests, wherever applicable.
Updated the Readme, if applicable.
Existing Tests pass
Verified functionality locally
Self Reviewed my code for formatting and complex business logic.