tom5760 / chrome-ezproxy

EZProxy redirect extension for Google Chrome & Mozilla Firefox.
https://chrome.google.com/webstore/detail/gfhnhcbpnnnlefhobdnmhenofhfnnfhi
GNU General Public License v3.0
40 stars 7 forks source link

Harvard proxy redirecting to menu rather than website #5

Closed kescobo closed 7 years ago

kescobo commented 7 years ago

Recently, using the chrome extension with the Harvard proxy redirects to http://ezp-prod1.hul.harvard.edu/menu rather than to the correct url.

Manually entering the proxy (eg http://ezp-prod1.hul.harvard.edu/login?url=http://www.chronicle.com/article/What-s-New-in-Freshman/240864) still works as expected.

I'm not sure exactly how long this has been happening, but it worked fine ~ 1 month ago, and has been doing this for at least a week.

Chrome: Version 60.0.3112.90 (Official Build) (64-bit) MacOS: v10.12.5 EZProxy: v14

tommygober commented 7 years ago

This is happening at University of Texas Rio Grande Valley as well.

I'm suspecting Chrome had some update and does not include the http:// or https:// in the url reported back to the Tab object. I'm wondering if the background.js will need to include something to pull the target url's "scheme" to include in the request sent on to EZProxy.

That, or perhaps OCLC updated EZProxy to require a certain "HTTP_REFERER" field

tom5760 commented 7 years ago

Yeah, something must have changed in Chrome recently. I'm investigating tonight.

tom5760 commented 7 years ago

As a workaround, it appears that right-clicking on links and selecting "Open Link with EZProxy" still works.

SimpleConjugate commented 7 years ago

The same is occurring for Louisiana Tech University. Instead of selecting by university, choose custom URL and keep the default.

edit: First you will want to choose by university to get the correct custom url, then select custom url for the redirect. This is just a workaround, but hope it gives you a better clue of what's broken.

tom5760 commented 7 years ago

Ok, this turned out to be a easy fix. Apparently, the "tabs" permission is now required to get the URL of the current tab when you click the extension button. I've just deployed a new version to the store (version 15), which should be available soon.

kescobo commented 7 years ago

Excellent, thanks a bunch!

tom5760 commented 7 years ago

Quick follow-up. I've put out a new version that replaces the "tabs" permission with the "activeTab" permission. This gets rid of the scary warning saying that the extension has access to your browsing history. I wish I found this earlier...

kescobo commented 7 years ago

@tom5760 That's sensible, but you can have my browsing history, I don't care :-P

tom5760 commented 7 years ago

Unfortunately, a few other people seem to care. 😿

uninstall

kescobo commented 7 years ago

😬