Skip to content

Instantly share code, notes, and snippets.

@nov

nov/fake_ajax_request.rb

Last active Nov 21, 2016
Embed
What would you like to do?
require 'rack/oauth2'
Rack::OAuth2.debug!
client = Rack::OAuth2.http_client
client.get 'http://example.com', nil, {
'X-Requested-With': 'XMLHttpRequest'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.