DEV Community

Discussion on: Integrate WordPress rest Api in Reactjs

Collapse
 
ivicaha profile image
ivica-ha

Hey,
I can't seem to go pass COARSE. Alwas the same error. Not sure what can I update.
I've set all the .htacces and config lines, but I always get:

Access to XMLHttpRequest at 'localhost:8080/wp-json/jwt-auth/v1...' from origin 'localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Any ideas? Maybe http?

Thanks for the help in advance.
Regards,

Collapse
 
mohsinalisoomro profile image
MOHSIN ALI SOOMRO • Edited

Thanks for comment here, can you send me screenshot of the exact error you get.
Here is the GitHub repo that may help you github.com/MohsinAliSoomro/wp-rest...