We’re getting this error: Access to XMLHttpRequest at ‘https://customesports.com/wp-admin/admin-ajax.php?nocache=427476’ from origin ‘https://www.customesports.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
We’ve had issues with AJAX before on this theme. The AJAX add to cart doesn’t work properly.
We’ve tried to add in the CORS header to allow these requests from both the specific non www domain and from all domains. However, this hasn’t worked.
We’ve contacted the plugin developers and they’ve said it’s not their plugin that’s the issue. We’ve contacted our hosts and they’ve said there’s nothing that could be causing this on their end.
To replicate the error go to a product page and select a size from the drop down, you’ll have the add to cart button be replaced by Loading text. The website then gets stuck on this. You can see the error come up after the Loading text in the dev tools console.