I put this ticket to the public side, maybe someone had the same issue I have actually.
I'm creating Website on Astro/React. And I connected it to an headless wordpress. On the wordpress, I've allowed Cross Origins ofc, and all my get request are working well.
But when I try to use the post (for customers or for appointment) I got a 307 redirect error.
I show you some of the response I received.
Access to XMLHttpRequest at 'https://******/wp-admin/admin-ajax.php?action=wpamelia_api&call=/api/v1/users/customers' from origin 'http://localhost:4321' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Thanks for reaching out to us. This is more of a question for developers troubleshooting. Let me double-check with the devs / QA team and i will report back as soon as i have feedback.
Please accept our apologies for the late reply. Developers are still troubleshooting this issue in order to find a permanent solution for this case, but I've searched a bit.
Hello all,
I put this ticket to the public side, maybe someone had the same issue I have actually.
I'm creating Website on Astro/React. And I connected it to an headless wordpress. On the wordpress, I've allowed Cross Origins ofc, and all my get request are working well.
But when I try to use the post (for customers or for appointment) I got a 307 redirect error.
I show you some of the response I received.
Access to XMLHttpRequest at 'https://******/wp-admin/admin-ajax.php?action=wpamelia_api&call=/api/v1/users/customers' from origin 'http://localhost:4321' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
POST https://******/wp-admin/admin-ajax.php?action=wpamelia_api&call=/api/v1/users/customers net::ERR_FAILED 307 (Temporary Redirect)
Amelia authorization, cross policy are ok for get but no for post?
Someone already had this issue?
Attached files: 307 redirect.PNG
Hello Karl,
Thanks for reaching out to us. This is more of a question for developers troubleshooting. Let me double-check with the devs / QA team and i will report back as soon as i have feedback.
Sorry for the long wait. Speak to you soon.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Karl,
Please accept our apologies for the late reply. Developers are still troubleshooting this issue in order to find a permanent solution for this case, but I've searched a bit.
Here is what I was able to find - Handling Cors StackOverflow
It may serve as a temporary fix until we find the solution. Of course, i will make sure that i forward the information as soon as i get it.
Thank you for your patience.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Karl,
Additionaly, see if you can find this article useful - https://wordpress.org/support/topic/cors-error-11/
Please, let us know if it works.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables