CORS RELATED ISSUE Infinity Free

Website URL

https://swk.42web.io/?i=1

Error Message

cors header missing

where as i have addded cors header in my php

Can you write clearly what you are trying to do?

3 Likes

i am just make a cors requiest to https://swk.42web.io/signupos.php from my react development server http://localhost:5173 which result in cors missing header where as in header.php i have proper header?

It will not work.
CORS is blocked on free hosting

5 Likes

oh thanks i need to use nly for db when switchng to mangodb thanks

Developing your React frontend locally while using your PHP backend hosted with us will not work. You can host the final project with us by compiling and uploading the React code to our servers. But during development, you’ll need to setup a local PHP environment to run the backend locally to test against, because our servers block the requests from your development environment.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.