You have no items in your shopping cart.

Saturday, April 27, 2024 3:50:18 AM

CORS (Cross-Origin Resource Sharing) issue?

Posted: 3 years ago

#11445 Quote

Support

Posted: 3 years ago

#11445 Quote
Access to XMLHttpRequest at 'https://m.stripe.com/6' from origin 'https://m.stripe.network' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

This error was from Google Search Console, there is a big delay with loading pages while waiting for the file to load, Google flagged the above as an issue.

Posted: 3 years ago

#11446 Quote

Support

Posted: 3 years ago

#11446 Quote
Regarding my last email concerning Cors, I have installed this on IIS8, hope it works.

https://www.iis.net/downloads/microsoft/iis-cors-module

Posted: 2 years ago

#11450 Quote

itinnovations

Posted: 2 years ago

#11450 Quote
I am thinking about testing this in IIS10 for the same issue. What configuration did you use?

Going to try the following.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
   <httpProtocol>
     <customHeaders>
       <add name="Access-Control-Allow-Origin" value="*" />
     </customHeaders>
   </httpProtocol>
</system.webServer>
</configuration>

Posted: 2 years ago

#11452 Quote

itinnovations

Posted: 2 years ago

#11452 Quote
I could not get the module to show the headers. If the module is installed dont think you need to add the custom header. I tried the following but did not work. Lot of people experimenting but no one has answers. :/ Maybe you have better luck.


   <cors enabled="true">
      <add origin="*" />
    </cors>

Posted: 2 years ago

#11453 Quote

Support

Posted: 2 years ago

#11453 Quote
My customer found another issues with this JavaScript library.
Check you pages using this tool
https://search.google.com/test/mobile-friendly
I decided to remove Stripe JavaScript library from all pages and add it only on the checkout page.

P.S.
I tried different solution but we have the performance issue with loading JS file
Try the new release

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved