reactjs project with mysql and php part3

preview_player
Показать описание
The full steps with code are given in the following tutorial.
Рекомендации по теме
Комментарии
Автор

for those who also have react and PHP server ports not the same""... has been blocked by CORS policy "


you may need to edit the .htaccess file as:
<IfModule mod_rewrite.c>
Header add Access-Control-Allow-Origin: "*"
Header add Access-Control-Allow-Methods: "GET, POST, OPTIONS, DELETE, PUT"
Header add Access-Control-Allow-Headers: "Content-Type"

RewriteEngine on
RewriteBase /
</IfModule>

girlandhercomputer
Автор

Need basic react js register form to connect db in xampp

NatureCries
Автор

Please upload react js register form to connect db using php in xampp

NatureCries
Автор

i've tried this tutorial, i have the same code but i haven't put react-php in htdocs but in www. The code doesn't work for me, the folder is the reason ? Sorry for my English, i'm french and thanks for the tutorial !

romainjacquel
Автор

I've finish this tutorial but when I try to login there are message "... has been blocked by CORS policy "

Andre-obpt
Автор

Help! Got a My database created via phpmyadmin in xampp serves in port8080, and react project serves in port 3000. Is this the problem?

stephenchen
Автор

I don't get it: why you force us to use the copy-paste method, where one never can be sure that he picked up all lines of code, instead of uploading .zip file with all necessary files?
I appreciate your effort to help other people but you have to be sure that we benefit from it. Otherwise, your and our effort is useless!

mirmil
welcome to shbcf.ru