CORS error when POSTing

Support ForumCategory: QuestionCORS error when POSTing
Brad asked 1 month ago

(Running bitnami image on EC2)
I have been given some very simple html code that includes a form POST to an API service provided by our client. I am pasting this code into the float-menu-pro popup. Everything appears to work, however once I submit the form and POST, I receive:

“`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://xyz. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)“`

I have confirmed that this POST works successfully if I paste the same code into a fresh wordpress page. It just appears that the CORS header is not enabled for the float-menu plugin. I have tried enabling Access-Control-Allow-Origin in the server httpd.conf file for the whole server, and specifically the /plugins/float-menu-pro/ directory. No luck
 
Any ideas?

1 Answers
Wow-Company Staff answered 1 month ago

Hello.
Can you send the link to the page with the problem?

Brad Miller replied 1 month ago

Thanks for the quick reply! You can view the page here: https://existmultifamily.com/home-8/

I have been opening firefox page inspect and viewing the console when I perform a submit — this is where I see the CORS error.