Monthly Archives: January 2015

XMLHttpRequest cannot load … No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access.

Problem XMLHttpRequest cannot load … No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access.   Solution This is due to CORS; which could be due to: server-side restrictions (which you can change either … Continue reading

Posted in Uncategorized | Leave a comment

Using Index for Filtering with Regex

Task Use rethinkdb backend for populating autocomplete/typeahead textbox (web ui).  It would be nice to be able to use index to speed up the query such as: r.table(“users”).filter(function(user) { return user(“lastName”).match(“^Ma”) Solution As suggest in this reply, a similar functionality … Continue reading

Posted in Uncategorized | Leave a comment