Skip to content

Fix headers for CORS preflight request (GONRG-2138)

Rustam Lotsmanenko (EPAM) requested to merge cors-headers-fix into master

Description:

https://community.opengroup.org/osdu/ui/admin-ui uses preflight requests for CORS, which cannot be processed by services, due to lack access-control-allow-origin in Access-Control-Allow-Headers response. Added access-control-allow-origin to Access-Control-Allow-Headers for CORS preflight request.
storage

How to test:

After header added, preflight requests can be processed normally
fix

Changes include:

  • 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).

Changes in:

  • Common code

Dev Checklist:

  • 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.
Edited by Rustam Lotsmanenko (EPAM)

Merge request reports