Simple Sinatra Ajax Not Working
- by proteantech
I was trying make an AJAX call from a static file on my computer to a simple sinatra service. The ajax call was returning with an error and no details. The server logged no errors either. Another strange symptom was that the Origin in the request header was null.
I turns out that you can't make cross domain ajax calls without a little extra…