You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! When I initially added SPARQL support to Ultra, I used POST requests sending the query as the body and a Content-Type: application/sparql-query header. This works great with the Wikidata Query Service and QLever.
Sophox also works with this invocation method when using curl, however it doesn't work in the browser because Sophox doesn't support CORS Preflight requests.
The text was updated successfully, but these errors were encountered:
dschep
changed the title
CORS headers for overpass-ultra.us
CORS Pre-flight OPTIONS request
Nov 15, 2024
I dug in a bit more, and the issue is that /sparql returns 404 for an OPTIONS request, which CORS requests from other domains must use for a preflight request.
Hi! When I initially added SPARQL support to Ultra, I used
POST
requests sending the query as the body and aContent-Type: application/sparql-query
header. This works great with the Wikidata Query Service and QLever.This is a valid means of calling SPARQL per the protocol: https://www.w3.org/TR/sparql11-protocol/#query-operation
Sophox also works with this invocation method when using
curl
, however it doesn't work in the browser because Sophox doesn't support CORS Preflight requests.The text was updated successfully, but these errors were encountered: