Re: EZProxy Config Help

Library Systems <[email protected]>
Newsgroups gmane.education.ezproxy
Message-ID <MEAPR01MB3717A6B0C2DA3ECA4A3E7F0AA2B60@MEAPR01MB3717.ausprd01.prod.outlook.com>
Hi Kun Lin,

Each vendor can be slightly different with how they do their AJAX, however a good first step would be to allow some request headers to be processed.

The common one is:
HTTPHeader -request -process X-Requested-With

Kind regards,
Ben

From: EZproxy List <[email protected]> On Behalf Of Kun Lin
Sent: Wednesday, 11 September 2019 1:51 AM
To: [email protected]
Subject: [EZPROXY-L] EZProxy Config Help


    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<http://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<http://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<http://merip.org>\/wp-admin\/admin-ajax.php","ajaxhome":"https:\/\/merip.org<http://merip.org>\/","ajaxadmin":"https:\/\/merip.org<http://merip.org>\/wp-admin\/","paupress_nonce":"e70bd7e475","ajaxload":"<div class=\"pp-loader-outer\"><div class=\"pp-loader-image\"><img src=\"https:\/\/merip.org<http://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<http://merip.org>\/wp-content\/plugins\/presspoint\/assets\/g\/loading.gif\"    \/><\/div><\/div>","ajaxLoadInline":"<div class=\"pp-loader-image\"><img src=\"https:\/\/merip.org<http://merip.org>\/wp-content\/plugins\/presspoint\/assets\/g\/pp-loader.gif\"><\/div>","ajaxLoadImage":"<img

    src=\"https:\/\/merip.org<http://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<http://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




________________________________

To unsubscribe from the EZPROXY-L list, click the following link:
http://listserv.oclclists.org/scripts/wa.exe?SUBED1=EZPROXY-L&A=1

********************************************************************
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].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.