Skip to content

Instantly share code, notes, and snippets.

@Netznarkose
Last active May 30, 2018 16:47
Show Gist options
  • Save Netznarkose/379c8d4476fb0b9a6d3d0a3f51c4e44c to your computer and use it in GitHub Desktop.
Save Netznarkose/379c8d4476fb0b9a6d3d0a3f51c4e44c to your computer and use it in GitHub Desktop.
debugging ajax in wadoku app
class WadokuSearchClient < Sinatra::Base
  set :api_host, 'localhost:2323' # instead of '127.0.0.1:2323'
  set :root, ROOT_DIR
  set :views, settings.root + "/app/views"
  set :static, true
  enable :sessions
end

boot chrome in a mode that allows cross origin requests

shell: open -a Google\ Chrome --args --disable-web-security

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment