menu

React Static

A fast, lightweight, and powerful framework for building static-progressive React applications and websites.

Channels
Team

CORS error and siteRoot (solved)

October 18, 2018 at 12:16am

CORS error and siteRoot (solved)

October 18, 2018 at 12:16am

I couldn't find this written anywhere else so this is for other folks who may run into this problem.

I was getting CORS errors and 404's on all navigation links after I added a siteRoot in the static.config file - something to do with the routeInfo.json files. Anyway, it was because I entered my siteRoot as https://my-site.com instead of https://www.my-site.com (I'm using www subdomain by default).

No messages yet