Reputation: 3988
React app compile successfully and when I open it with localhost
there is no problem. but when I open it with ip I get error.
Here is react compile successfully:
And error when I open app with http://192.168.1.101:300
It seem chrome try use https
instead of http
.
I try with other port and same problem.
UPDATE
I also notice this:
Upvotes: 0
Views: 489
Reputation: 3988
I just remove <meta http-equiv="Content-Security-Policy" content="default-src 'self'">
from head
in html. and problem solved.
Upvotes: 1