Closed matthewjamesr closed 10 years ago
This is probably due to cross-origin policies. You should do the request server-side within the module and open local routes to handle that. Make sense?
Would you be able to give me a simple example geared towards what my code is trying to do? I would appreciate it.
On Tuesday, July 15, 2014, Stanislas Polu notifications@github.com wrote:
This is probably due to cross-origin policies. You should do the request server-side within the module and open local routes to handle that. Make sense?
— Reply to this email directly or view it on GitHub https://github.com/breach/breach_core/issues/144#issuecomment-49056260.
Matthew Reichardt Technology Director any.TV www.any.tv
Email: mattr@any.tv | Skype: matthewjames12 | Motto: "Set out to be what you aspire to be"
You can look at mod_strip client side: https://github.com/breach/mod_strip/blob/master/controls/strip/index.html How it uses socket.io to communicate with the nodeJS app running in a separate process as a module: https://github.com/breach/mod_strip/blob/master/lib/strip.js
Ok thanks I will take a look tonight!
perfect!
This issue has been resolved, simply create a server side php script if that is your flavor, change the headers and echo back your data request in Json. I achieved the login utilizing creation/tear down of localStorage keys.
Hello I am making a module and want to pull data from mysql. I setup my ajax call and my php file for server side and on my server the request works, in the module on index.html it does not. Any ideas? Bellow is my clien-side: