Using medplum sdk to interact with an Epic server ...
# support
d
Hey All, I am wondering if there are any examples on this. So far, I am able to trigger the MyChart login page but I get the below error on redirect to my application "Access to fetch at 'https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4/Patient/xyzzz' from origin 'https://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. "
r
cc @alexkg
a
@dejimarquis we've gotten around this by disabling CORs in the web-browser and then removing 'Access-Control-Allow-Origin' from the header.
We fortunately don't run into this with deployed solutions on web but CORS causes problems testing on local
d
Lovely! Thanks for the pointers!
153 Views