-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow requests to local domains. #27
Comments
VisualJSON doesn't determine your URL is local or not. I usually use this application with localhost. Could you open the URL with other application? I guess if safari can open it, VisualJSON also opens it. |
Firefox use non-OS connection - but I don't think you set it up different network environment. |
Safari opens this host too. To replicate my environment you need to have:
With this up and running:
In require 'sinatra'
require 'sinatra/json'
post '/login' do
params.inspect
if params[:email] == '[email protected]' and params[:password] == '123qwe'
[200, json({status: 'ok'})]
else
[401, json({status: 'login information is incorrect'})]
end
end
get '/*:format?' do
params.inspect
end In require './server'
run Sinatra::Application After all do in terminal inside folder with
Now you can open in Safari your sinatra app with URL given by Pow. |
Have same behavior when server responds with 400 Bad Request. When a server being tested responds with 200 - response is shown under the Tree section. When the response code is 400 - I have the same error as @gvino wrote. |
It looks like you drop all responses, except 200. |
#28 seems solve this problem |
@youknowone hmm. same bug.. using last VisualJSON from App Store Have project running on localhost( MAMP ) & remote test server. |
Now when I tried to send request to
http://test-server.dev/login
, for example I see an error:The text was updated successfully, but these errors were encountered: