Hi,

I am trying to build a front end that queries the Ryu REST service from
within a JS. However, when I try to execute a GET from within the script
context then I get the following error:

XMLHttpRequest cannot load http://tap-test.t-labs.us:8080/switches. No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8888 <http://localhost/>' is therefore not allowed
access.

I have tried the following :
1. Added it to the headers dict inside wsgi.py (python distro) (nothin
happend)
2. Obtained res from req and tried to add it (errored out)
3. Added it to the webob response header list (nothing happend)

any pointers will be much appreciated.

best,
DJ


-- 
--
Luminous beings we are, not this crude matter
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to