Test HAPI Server Swagger broken?

37 views
Skip to first unread message

Anton Kurylovich

unread,
Nov 20, 2023, 10:24:30 AM11/20/23
to HAPI FHIR
http://hapi.fhir.org/baseR4/swagger-ui/ 

Is anyone else being met with this error message:?

Fetch error
Failed to fetch https://hapi.fhir.org/baseR4/api-docs?page=System Level Operations
Fetch error
Possible cross-origin (CORS) issue? The URL origin (https://hapi.fhir.org) does not match the page (http://hapi.fhir.org). Check the server returns the correct 'Access-Control-Allow-*' headers.

James Agnew

unread,
Nov 20, 2023, 10:46:56 AM11/20/23
to Anton Kurylovich, HAPI FHIR
Ah, that's a good catch. The server uses the https version for its CORS origin, so that will only work if you use an https link.

I've added an automatic redirect to the nginx config, it should send you to the working URL automatically now.

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/e7d68b34-d066-437d-a9f1-838522e8207an%40googlegroups.com.

Anton Kurylovich

unread,
Nov 20, 2023, 10:54:32 AM11/20/23
to HAPI FHIR
Yep, working now, thanks!
Reply all
Reply to author
Forward
0 new messages