Access to fetch at 'https://staging.arkhn.com/hapi/fhir/Patient?name=p' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Description
CORS error when trying to request https://staging.arkhn.com/hapi/fhir/Patients :
Reproduction
Try accessing https://staging.arkhn.com/hapi/fhir/Patient?name=p from a front-end app with headers
Authorization: "Basic token"
See error.
Expectation
Request response with header :
Access-Control-Allow-Origin: http://localhost:3000