inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Feat: add support for openRpcDocumentURI in query params

Open zcstarr opened this issue 3 years ago • 2 comments

Summary: Add support for a specifying an openRPC document via URI in the query params for inspector. This will improve the ux capability of inspector.

Acceptance Criteria: You can specify openRpcDocumentUri in the query params. It will defer to the existing openRPCDocument param, in the case that both params are specified.

zcstarr avatar Aug 12 '22 03:08 zcstarr

This feature already exists: the query parameter is called schemaUrl . image https://inspector.open-rpc.org/?schemaUrl=https://raw.githubusercontent.com/open-rpc/examples/master/service-descriptions/metrics-openrpc.json

ivy-rew avatar Apr 05 '24 12:04 ivy-rew

@zcstarr I think now I see your problem. Opening the browser console I saw that requests to fetch the given schemaUrl spec fails, unless its hosted on Github. This derives from a CORS security restriction. You can work-around it by installing a browser extension, that patches CORS headers, so that you can call external hostnames.

cors_issues-with-query-url

This one works for me on Firefox: https://mybrowseraddon.com/access-control-allow-origin.html?v=0.1.7&type=install

ivy-rew avatar Apr 08 '24 13:04 ivy-rew