Code4Health-Platform / openehr-care-connect-adaptor

3 stars 7 forks source link

Add support for CORS to demo endpoints #33

Closed freshehr closed 6 years ago

freshehr commented 6 years ago

Accessing the demo FHIR endpoints causes a CORS error when accessing directly from a browser based app. This is correct behaviour for any kind of production system but limits use for demo/training.

It would be helpful to apply Access-Control-Allow-Origin * to the headers

see https://spring.io/blog/2015/06/08/cors-support-in-spring-framework#filter-based-cors-support

freshehr commented 6 years ago

fixed