Cross Domain Requests Support?
Posted: Tue Feb 21, 2017 1:30 pm
Hi
We have a federated system working but I'm currently using frames for this and not the javascript method that we use for internal requests. This is a pain. So I'd like to start using CORS.
Was just after documentation or tips on using OMERO with cross origin/domain javascript requests both on the client side and the server side?
Does the javascript api support adding cors headers?
e.g. GET /cors HTTP/1.1
Origin: http://api.bob.com
Host: api.alice.com
Accept-Language: en-US
Connection: keep-alive
User-Agent: Mozilla/5.0...
I'm assuming server side header responses from the webgateway have to be set up the same way or similarly to any django web app?
Any pointers appreciated!
Thanks
Jonathan.
We have a federated system working but I'm currently using frames for this and not the javascript method that we use for internal requests. This is a pain. So I'd like to start using CORS.
Was just after documentation or tips on using OMERO with cross origin/domain javascript requests both on the client side and the server side?
Does the javascript api support adding cors headers?
e.g. GET /cors HTTP/1.1
Origin: http://api.bob.com
Host: api.alice.com
Accept-Language: en-US
Connection: keep-alive
User-Agent: Mozilla/5.0...
I'm assuming server side header responses from the webgateway have to be set up the same way or similarly to any django web app?
Any pointers appreciated!
Thanks
Jonathan.