graphqurl icon indicating copy to clipboard operation
graphqurl copied to clipboard

add --insecure/-k flag to allow insecure requests

Open stormsweeper opened this issue 3 months ago • 1 comments

The flags are based on the same ones in cURL. With the flag added, it will create an https agent that does not reject bad certificates.

fix #143

stormsweeper avatar Mar 19 '24 20:03 stormsweeper

Before:

% gq https://hasura.local/v1/graphql -H "X-Hasura-Admin-Secret: hasura" --introspect > foo.schema
Executing query... error
Error:  { errors: [ { message: 'failed to fetch' } ] }

After:

% gq https://hasura.local/v1/graphql -H "X-Hasura-Admin-Secret: hasura" --introspect -k > foo.schema
Executing query... done

stormsweeper avatar Mar 19 '24 20:03 stormsweeper