- AuthorPosts
- December 12, 2018 at 7:25 pm #17815
Hi
I have tried everything to resolve the CORS issue which doesn’t allow tabs to load on profile page neither allows to load the images.
Tried this
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
But didn’t work either.
Loaded the alternate config.xml that you have provided as well. Didn’t work.
Please suggest what to do.
December 13, 2018 at 11:36 am #17829Okay did you tried the other one also ?
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1
This is a very common problem .please refer: https://github.com/WP-API/Basic-Auth/issues/35
December 13, 2018 at 1:33 pm #17835Yes have tried literally everything out there. Have gone through all the topics on your forum, plus numerous posts on wordpress, stackoverflow.
Have easily spent more than 10 hours trying all this.
I believe there is something else going on. I am pretty advanced at such things and I am totally stumped.
December 14, 2018 at 12:50 pm #17854This is neither related to api code not to app code .
Well the error is actually related to server security .
On some server it actually strips the authorization code from php’s $_SERVER global variable which we are using .
Please share your site url , admin credentials and a valid ftp credentials in a private reply to check and confirm this .
November 24, 2019 at 6:01 pm #38990Hello, I’m facing pretty much the same problem, my app compiles and runs on most devices, but on select android devices it fails to fetch any data, inspecting what was happening using developer tools in Chrome debugger window it specifies this error “Access to XMLHttpRequest at ‘https://***********************’ from origin ‘file://’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header contains the invalid value ”.”
I went though all the .htaccess suggestion and tried all the stackoverflow and git suggestions to no relief.
Please help.
- AuthorPosts
You must be logged in to reply to this topic.