Reply
tan
Contributor
Posts: 10
Registered: ‎04-03-2017

Re: Library is not coming from Accept CDN.

Hey. I discovered what the problem is. The client appears to have a plugin on their website that is adding a query argument "?ver=4.5.7" to the end of every script tag "src". This is presumably for cache control purposes. Now that I know what the problem is, I can work on a solution.

 

Thank you very much to everyone who helped.

All Star
Posts: 699
Registered: ‎11-03-2016

Re: Library is not coming from Accept CDN.

Oh wow. That's great that you found it, and thanks immensely for coming back with the update. Now that's something we can remember to check if we here any other report. I don't know how common this method of cache control would be, so I don't know if it's worth our while to investigate any accomodations on our end. We could, for example, only attempt to match the URL up to any query string given.

 

In the short term, we could possibly put something in the documentation that says we verify where the script was loaded from, and we do that by actually comparing the URL string against what we know to be correct, so don't do anything that might break that.

 

Again, thanks!

tan
Contributor
Posts: 10
Registered: ‎04-03-2017

Re: Library is not coming from Accept CDN.

[ Edited ]

Hey. Sorry, I was mistaken. It's actually WordPress adding the query argument, not a plugin.

New Member
Posts: 6
Registered: ‎10-19-2019

Re: Library is not coming from Accept CDN.

Hello,

 

I am seeing the same problem on my end.

The jquery is automatically adding ?=timestamp to https://jstest.authorize.net/v1/Accept.js which I fixed by temporarily disabling cache while loading the Accept.js script.

 

However,  I now see the error on the AcceptCore.js.  I can confirm that the dynamic ?=[timestamp] is no longer sent, but still I am getting 90:97 Library is not coming from Accept CDN.

 

https://jstest.authorize.net/v1/AcceptCore.js

 

0 !== document.querySelectorAll('script[src="' + c + '"]').length || k(z, b) || (y.warn("Library is not coming from Accept CDN."), m(b, C.messageInfo.E_WC_01)), "https:" === window.location.protocol || k(z, a) || (y.warn("An HTTPs connection is required to secure delivery of payment information."), m(a, C.messageInfo.E_WC_02))

Did anybody encounter this, how do I fix this ?

 

Any help is highly appreciated.

 

Thank you.

New Member
Posts: 6
Registered: ‎10-19-2019

Re: Library is not coming from Accept CDN.

Hello,

 

I am seeing the same problem on my end.

The jquery is automatically adding ?=timestamp to https://jstest.authorize.net/v1/Accept.js which I fixed by temporarily disabling cache while loading the Accept.js script.

 

However, I now see the error on the AcceptCore.js. I can confirm that the dynamic ?=[timestamp] is no longer sent, but still I am getting 90:97 Library is not coming from Accept CDN.

 

https://jstest.authorize.net/v1/AcceptCore.js

 

0 !== document.querySelectorAll('script[src="' + c + '"]').length || k(z, b) || (y.warn("Library is not coming from Accept CDN."), m(b, C.messageInfo.E_WC_01)), "https:" === window.location.protocol || k(z, a) || (y.warn("An HTTPs connection is required to secure delivery of payment information."), m(a, C.messageInfo.E_WC_02))

Did anybody encounter this, how do I fix this ?

 

Any help is highly appreciated.

 

Thank you.

Highlighted
Member
Posts: 9
Registered: ‎08-10-2018

Re: Library is not coming from Accept CDN.

Great information...Thank you for share ometv

New Member
Posts: 6
Registered: ‎10-19-2019

Re: Library is not coming from Accept CDN.

Any update/resolution to the issue I posted ?