IHTSDO / SNOMED-in-5-minutes

Easy-to-use tutorials for accessing SNOMED APIs within 5 min using various programming languages
Other
123 stars 56 forks source link

Javascript example returns CORS error #19

Closed sandorvasas closed 2 years ago

sandorvasas commented 4 years ago

CORS headers are not present on the API response, therefore the example can't be run. Is there any other way, or other URL to query the API?

kaicode commented 2 years ago

This should be fixed. The public Snowstorm instance now returns the following access control headers:

< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET, POST, OPTIONS
< Access-Control-Allow-Headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range
< Access-Control-Expose-Headers: Content-Length,Content-Range