EZProxy Config Help
Kun Lin <[email protected]>
| Newsgroups | gmane.education.ezproxy |
|---|---|
| Message-ID | <[email protected]> |
We have a subscription to journal “Middle East report”. I have
trouble configure
it via EZProxy. There is no published config. I simply use URL, HJ, DJ for
its domain “merip.org”. While we could get to the website, we aren’t
getting the link for PDF download. So, I check the browser developer
console and found out that there is an AJAX request getting blocked because
“cross-origin”. I added 'HTTPHeader -response -edit
Access-Control-Allow-Origin "*" ' to config. It did not help. I am still
getting cross site. And it seems like EZProxy did not recognize that they
need to rewrite the POST AJAX request to merip.org with our EZProxy prefix. I
locate the code in HTML source to an inline Javascript
<script type='text/javascript'>
/* <![CDATA[ */
var paupressAjax = {"ajaxurl":"https:\/\/merip.org
\/wp-admin\/admin-ajax.php","ajaxhome":"https:\/\/merip.org
\/","ajaxadmin":"https:\/\/merip.org\/wp-admin\/","paupress_nonce":"e70bd7e475","ajaxload":"<div
class=\"pp-loader-outer\"><div class=\"pp-loader-image\"><img
src=\"https:\/\/merip.org\/wp-content\/plugins\/presspoint\/assets\/g\/pp-loader.gif\"
\/><\/div><\/div>","ajaxloadinline":"<div
class=\"pp-loader-modal\"><div class=\"pp-loader-modal-image\"><img
src=\"https:\/\/merip.org\/wp-content\/plugins\/presspoint\/assets\/g\/loading.gif\"
\/><\/div><\/div>","ajaxLoadInline":"<div class=\"pp-loader-image\"><img
src=\"https:\/\/merip.org
\/wp-content\/plugins\/presspoint\/assets\/g\/pp-loader.gif\"><\/div>","ajaxLoadImage":"<img
src=\"https:\/\/merip.org\/wp-content\/plugins\/presspoint\/assets\/g\/pp-loader.gif\">","download":"Download","close":"Close","oneMoment":"One
Moment Please...","closeThis":"Close","confirmAction":"Are you certain you
wish to make this change?","errMsg":"We found some errors -- please attend to
the fields below marked with <span
class=\"halt-example\">\u00a0<\/span>","couponErr":"<div
class=\"pp-error\">Duplicate. Please note new
value.<\/div>","yearLow":"50","yearHigh":"5"}; /* ]]> */
</script>
So, I am trying to use "Find" and "Replace" directive in EZProxy to
force a rewrite of ajaxURL. It doesn't seem to work to simply do Find "
merip.org" Replace "merip-org.ezproxy.{our domain}.edu". Anyone has ideas
on how I could force rewriting this AJAX URL?
Thanks a lot
----
Kun Lin
Systems and Application Librarian
Whitman College
PGP Public Key https://keybase.io/dnwklin/pgp_keys.asc
********************************************************************
If you wish to stop receiving messages from EZPROXY-L or otherwise amend your preferences,
you can do so <a href="https://www.oclc.org/forms/internet-subscription.en.html">here</a>.
Or email [email protected] including the relevant text below in the body of the email:
• To unsubscribe: "unsubscribe EZPROXY-L"
• To receive EZPROXY-L in digest form: "set EZPROXY-L digest"
• To set your options to no mail: "set EZPROXY-L nomail"
• To receive these messages in the future "set EZPROXY-L mail"
To contact the list owners directly please send your message to [email protected].
If you unsubscribe from EZPROXY-L, you will no longer be able to participate in any of its features, including the public forum.
To unsubscribe from all OCLC marketing email communications
(including all OCLC listervs, OCLC Connect emails, OCLC event notifications, product/service/cooperative updates and newsletters),
please email us at [email protected].