Print

Print


You might want to try the EZProxy listserv: [log in to unmask]


-- 
Bin 

On 9/9/19, 2:56 PM, "Code for Libraries on behalf of Kun Lin" <[log in to unmask] on behalf of [log in to unmask]> wrote:

    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 rewrting this AJAX URL?
    
    Thanks a lot
    
    
    ----
    Kun Lin
    Systems and Application Librarian
    Whitman College
    
    PGP Public Key https://keybase.io/dnwklin/pgp_keys.asc