Report this

What is the reason for this report?

Wordpress Toolset plugin not working correctly because of CORS problem

Posted on February 15, 2017

this is the error the support staff at Toolset identified:


XMLHttpRequest cannot load http://pitcherlist.com/wp-admin/admin-ajax.php?wpv_force_one_query_arg=view…c52&action=wpv_shortcode_gui_dialog_create&shortcode=wpv-user&post_id=1836. Redirect from 'http://pitcherlist.com/wp-admin/admin-ajax.php?wpv_force_one_query_arg=view…c52&action=wpv_shortcode_gui_dialog_create&shortcode=wpv-user&post_id=1836' to 'http://www.pitcherlist.com/wp-admin/admin-ajax.php?wpv_force_one_query_arg=…c52&action=wpv_shortcode_gui_dialog_create&shortcode=wpv-user&post_id=1836' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.pitcherlist.com' is therefore not allowed access.


And then Digital Ocean’s support staff responded with this:

"This is a CORS error, which is occurring due to security policies set up on your Droplet. However it’s the fourth major error I see in the console, behind these three:

Uncaught TypeError: $ is not a function at scripts.js?ver=1.0.0:20 bplayer-sm2.js:28 Uncaught ReferenceError: soundManager is not defined at bplayer-sm2.js:28 bplayer-sm2.js:28 Uncaught ReferenceError: soundManager is not defined at bplayer-sm2.js:28

In troubleshooting errors like this, it’s often the case that the first error is causing later errors. I’d recommend troublehshooting those errors in order before working on this CORS problem, it may take care of itself."


How would I go about troubleshooting this?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.