jose007
(jose ignacio)
1
Help to make ajax CORS call to a Person resource of FHIR using the access token of Oauth2, with the following example:
Can you help me? Thank you @mavrk, @dkayiwa
What we already have running ok with crossed calls is the obener access token as follows:
Generates these two calls:
mavrk
(Sanatt Abrol)
2
Hi @jose007 you can add CORS support to the module using https://wiki.openmrs.org/display/projects/OAuth2+Module+-+add+support+for+CORS
I’m occupied with some family responsibilities, I’ll look into your issue in detail by tomorrow
wyclif
(Wyclif Luyima)
3
@jose007 you can just do it directly in tomcat, see
wyclif
(Wyclif Luyima)
4
You would make the changes in $CATALINA_BASE/conf/web.xml
jose007
(jose ignacio)
5
Thanks, I’m using Jetty, since I’m in development.
It is configured as detailed it, in the part of OPTIONALLY: https://wiki.openmrs.org/display/projects/OAuth2+Module±+add+support+for+CORS
but throw the errors inicially named.
wyclif
(Wyclif Luyima)
6
Jetty has a similar feature, see
1 Like