BeHappy
BeHappy

Reputation: 3988

Problem with running react over ip address

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:

enter image description here

And error when I open app with http://192.168.1.101:300

enter image description here

It seem chrome try use https instead of http.

I try with other port and same problem.

UPDATE

I also notice this:

enter image description here

Upvotes: 0

Views: 489

Answers (1)

BeHappy
BeHappy

Reputation: 3988

I just remove <meta http-equiv="Content-Security-Policy" content="default-src 'self'"> from head in html. and problem solved.

Upvotes: 1

Related Questions