Question
Wordpress Toolset plugin not working correctly because of CORS problem
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?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×