RealOnePageCheckout - Processing of a Resource from Untrusted Source Blocked

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 năm cách đây
Hello,

To begin with - information about the my site:

primary server: origin-cubica.daronop.info
the CDN server: cubica.cloudingnow.netdna-cdn.com
installed plugin: RealOnePageCheckout

The issue - it happens only on CDN server:

When I add the product to the basket and press pay button, is no further action,
the page (http://cubica.cloudingnow.netdna-cdn.com/order/checkout) stucks, does not load

By pressing F12 (Chrome browser)and viewing the log, I see that an angular script is not executed:

Error: [$sce:insecurl] http://errors.angularjs.org/1.3.12/$sce/insecurl?p0=http%3A%2F%2Forigin-cubica.daronop.info%2FRealOnePageCheckout%2FBillingAddressForm ......

The AngularJS says:
Blocked loading resource from url not allowed by $sceDelegate policy.  URL: http://origin-cubica.daronop.info/RealOnePageCheckout/Bil...
.....
To load templates from other domains and/or protocols, either adjust the whitelist/ blacklist or wrap the URL with a call to $sce.trustAsResourceUrl...


How to fix this problem?

I would be very grateful,
Leonid.
9 năm cách đây
leonidbe wrote:
Hello,

To begin with - information about the my site:

primary server: origin-cubica.daronop.info
the CDN server: cubica.cloudingnow.netdna-cdn.com
installed plugin: RealOnePageCheckout

The issue - it happens only on CDN server:

When I add the product to the basket and press pay button, is no further action,
the page (http://cubica.cloudingnow.netdna-cdn.com/order/checkout) stucks, does not load

By pressing F12 (Chrome browser)and viewing the log, I see that an angular script is not executed:

Error: [$sce:insecurl] http://errors.angularjs.org/1.3.12/$sce/insecurl?p0=http%3A%2F%2Forigin-cubica.daronop.info%2FRealOnePageCheckout%2FBillingAddressForm ......

The AngularJS says:
Blocked loading resource from url not allowed by $sceDelegate policy.  URL: http://origin-cubica.daronop.info/RealOnePageCheckout/Bil...
.....
To load templates from other domains and/or protocols, either adjust the whitelist/ blacklist or wrap the URL with a call to $sce.trustAsResourceUrl...


How to fix this problem?

I would be very grateful,
Leonid.


Hi,

If you are talking about our One Page Checkout plugin, then we will check if it has some problems working with CDN server. Please open a ticket in our ticketing system, so we can easily communicate and detect the problem.


Thanks in advance !
9 năm cách đây
Hi,

After further investigating, it seems that everything is working fine, even without allow origin policy in nopCommerce web.config file.

You can do the following to ensure that the CDN works.

Just add the
Html.AddScriptParts("https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"); 


on place of
Html.AddScriptParts("~/Plugins/SevenSpikes.Nop.Plugins.RealOnePageCheckout/Scripts/angular/angular.min.js");


You can find this code in the beginning of the /Plugins/SevenSpikes.Nop.Plugins.RealOnePageCheckout/Views/RealOnePageCheckout/RealOnePageCheckout.cshtml file.



I hope this helped !
9 năm cách đây
Thanks!
Soon I will check it out and in any case tell if it works.

Thanks again!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.