ericduran / chromeHAR

HAR viewer that mimics (or at least tries really hard to) Chromes network tab
https://ericduran.github.io/chromeHAR
MIT License
495 stars 133 forks source link

Load HAR from URL #67

Closed BlackthornYugen closed 9 years ago

BlackthornYugen commented 9 years ago

I like to through har files on my pastebin account; it would be nice if they could be loaded directly.

It would be really handy if you could share a HAR with a link like this: http://ericduran.github.io/chromeHAR/http%3A%2F%2Fpastebin.com%2Fxxxxxxx

Or maybe just give the option to paste json into a textarea?

Edit Found that cvan already added this feature but it doesn't look like I can use pastebin because of cross site stuff. My Attempt to use pastebin

cvan commented 9 years ago

pastebin.com should be serving that with CORS headers.

I would suggest contacting pastebin.com or a CORS'd service such as dpaste.com:

http://ericduran.github.io/chromeHAR/?url=http://dpaste.com/2R2Q1KM.txt


an alternative is to use a service like https://jsonp.nodejitsu.com/ (or add a server as a dependency) as a proxy for GET requests to add CORS headers. but that's hacky and not worth the maintenance headache IMO.