Stream: implementers
Topic: HAPI FHIR - Restful Server - CORS
Joel Francis (Nov 07 2017 at 14:03):
Hi,
I have been following the tutorial http://docs.smarthealthit.org/tutorials/server-quick-start/
I have built a restful server using the hapi library that serves data to the growth chart smart client.
I am currently trying to launch the app in debug (unauthenticated) mode.
However, upon launch there is no error throw but the app logo is continuously showing "loading" with no further response or anything happening on the screen. Can anyone shed any light and possible resolution for the issue? I suspect it is CORS and i have enabled CORS as per the hapi suggestions here: http://hapifhir.io/doc_cors.html
Any advice is appreciated.
Josh Mandel (Nov 07 2017 at 14:29):
Sounds like a good question for SMART mailing list. Also, are you familiar with the open source HSPC server that implements SMART on top of HAPI? @Travis Cummings can share details.
Joel Francis (Nov 07 2017 at 15:36):
Hi Josh,
I am not familiar with the HSPC sand box. How do i get to the smart mailing list? I did post this on the google groups for SMART but havent received any insight as yet.
Sounds like a good question for SMART mailing list. Also, are you familiar with the open source HSPC server that implements SMART on top of HAPI? @Travis Cummings can share details.
Travis Cummings (Nov 09 2017 at 03:39):
Hi @Joel Francis,
The tutorial has an error. Please use this address to see the app being opened without a SMART launch and context.
https://sb-apps.smarthealthit.org/apps/growth-chart/
Joel Francis (Nov 09 2017 at 13:24):
Hi @Joel Francis,
The tutorial has an error. Please use this address to see the app being opened without a SMART launch and context.
https://sb-apps.smarthealthit.org/apps/growth-chart/
Thanks @Travis Cummings
Patrick Werner (Nov 14 2017 at 10:18):
@Joel Francis do you work with the hapi JPA example server? There was a bug in CORS. I already made a pull request wich was merged recently: https://github.com/jamesagnew/hapi-fhir/pull/718
Joel Francis (Nov 14 2017 at 15:01):
@Joel Francis do you work with the hapi JPA example server? There was a bug in CORS. I already made a pull request wich was merged recently: https://github.com/jamesagnew/hapi-fhir/pull/718
thanks for that @Patrick Werner . I was however following the Restful Server example.
Last updated: Apr 12 2022 at 19:14 UTC