You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The index page, / is being re-directed to /?gatsby-404 which is re-directing back to /, creating an infinite loop.
In the console, I get this error:
Access to link element resource at 'https://narulakeshav.com/static/d/173/path---index-6a9-NZuapzHg3X9TaN1iIixfv1W23E.json' (redirected from 'http://narulakeshav.com/static/d/173/path---index-6a9-NZuapzHg3X9TaN1iIixfv1W23E.json') from origin 'http://narulakeshav.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
I have created a custom 404.js page, which just exports this:
<divstyle={{textAlign: 'center',width: '100vw',padding: '10vh 0'}}><h1>Error. Not Found.</h1><p>
This page doesn't exist yet. Probably my cat or something...
<br/><br/><ahref="/">Back Home</a></p></div>
This doesn't happen when I serve it locally after build gatsby serve, but when I push it to the server, it does this. EDIT: It works fine on Safari, but not Firefox or Chrome.
@narulakeshav It looks like the issue you're experiencing, might be related to this #10074 . And that one was addressed recently.
So, with that in mind, it would be great if you could update the gatsby library, redeploy your site to the server and make sure that any cache/public/node_modules folders are cleared in order for a fresh version of gatsby is installed and then see if the issue is resolved and report back.
Sounds good?
Description
The index page,
/
is being re-directed to/?gatsby-404
which is re-directing back to/
, creating an infinite loop.In the console, I get this error:
I have created a custom
404.js
page, which just exports this:This doesn't happen when I serve it locally after build
gatsby serve
, but when I push it to the server, it does this.EDIT: It works fine on Safari, but not Firefox or Chrome.
Expected result
/
renders and stays on home page.Actual result
Infinite loop between
/
and/?gatsby-404
.Environment
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.8.0 - /usr/local/bin/node
Yarn: 1.12.1 - ~/.yarn/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: 71.0.3578.62
Safari: 11.1.2
npmGlobalPackages:
gatsby-cli: 2.4.1
The text was updated successfully, but these errors were encountered: