Closed tingzhao closed 4 years ago
There already is an automatic options middleware as well as CORS handling where "Access-Control-Allow-Origin" is "*". Is this not an OPTIONS issue but something else?
Options handling was already being handled. Handling of CORS was finished as of commit 766cd10f, which permits neuroglancer support.
Sending POST/PUT/DELETE to DVID from a different website such as neuroglancer may trigger a preflight request, which sends an OPTIONS request to DVID to check if the actual method is available. It appears that DVID will return an error for any OPTIONS request, keeping neuroglancer from writing data to DVID.