'Build index with white screen

I'm looking to host a website developed with reactjs but when I generate the build and open the index the screen is white.



Solution 1:[1]

you need to use a server like apache or Nginx or other similar, opening the index file only will not work. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Besufkad Menji