Testing your code on a live server
Hi, I just tested your code on a live server (to study react deployment with c++ backend). It seems that the reactjs frontend can't communicate with the c++ backend as the result is always "TypeError: NetworkError when attempting to fetch resource.".
Any idea on how to fix this? Thank you.
@faizol I had the error

Have you solved it?
I am also studying react with c++ as server. It would be appreciated if you could share any other study material. I did not find any examples using react and c++.
@faizol @yaojiadong
Hello, sorry for late response, I've just seen your questions. Refer to the following link, I think, it will solve your issue, please let me know if it works for you.
Hi @reza-arjmandi , thanks for your response.
I don't quite get your point.
Do you mean using _settings->set_default_header( "Access-Control-Allow-Origin", "*"); ?
This is the code that we are running, but it does not work.
Could you please point out what you exactly mean by that link?