Open mattgif opened 6 years ago
Currently, you need to run localStorage.removeItem("netlifySiteURL")
in the console to reset the URL, and then reload the page. This is an upstream issue that is in the process of being fixed: https://github.com/netlify/netlify-identity-widget/issues/148.
Got it, thanks!
@tech4him1 I'm not sure if I should file a separate issue for this, but I keep getting the "Failed to load settings from https://mywebsite.com/.netlify/identity" when I try to use the widget during local development. Is there something I'm doing wrong?
@renschler Did you enable Netlify Identity and Git Gateway?
@tomrutgers I don't have git gateway enabled (afaik), but this is just for the gatsby-hello-world example, i'm not using netlify-cms (so maybe this thread is misplaced - i apologize).
I do have netlify identity enabled, and it seems to work fine in production, it just doesn't work locally.
Update: I develop in Brave Browser, and I had shields down, but things weren't working. They did work when I visited the production site though (even with shields up).
When I tested in Chrome things worked fine for local dev.
So I'm not sure what is causing the issue with Brave local development but this is the error in my console:
localhost/:1 Access to fetch at 'https://smartscalesync.com/.netlify/identity/settings' from origin 'http://localhost:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
Can't help you with that unfortunately, as your issue is not Netlify CMS related. Maybe try opening an issue in the Netlify identity widget repo?
ok no worries thanks
Currently, you need to run
localStorage.removeItem("netlifySiteURL")
in the console to reset the URL, and then reload the page. This is an upstream issue that is in the process of being fixed: netlify/netlify-identity-widget#148.
I'm sorry, but can anyone provide more step on how to run the localStorage.removeItem("netlifySiteURL")
in the console?
I started up netlify-cms locally and entered the wrong Netlify identify URL and now I'm stuck on the error page.
After some googling, found out what you meant by localStorage(of the browser) and (developer)console(of the browser)...: https://github.com/netlify/netlify-identity-widget/pull/70/files
I can modify the localStorage, but I can't get the repository URL to change under Identity > Git Gateway. I still need help.
The docs say it's uneditable, which I understand from a consistency aspect, but you can easily change your repo's name in github. I don't want to be stuck with my misspelled repo url because Netlify doesn't allow you to change a lil string.
I've tried Disabling the Git Gateway, hard refreshing the page, and even "changing" the git repository, but it's just stuck.
EDIT: I was finally able to get it to change inside the settings by following these instructions. I still can't get localhost:8000/admin to stop saying "Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway." though.
Running Netlify CMS with Gatsby, I went to
http://localhost:9000/admin/#/
and clicked "Login with Netlify Identity." I pasted my site url at the prompt, including thehttp://
portion. Now the CMS is trying to hithttps://http://my-site-url.netlify.com/.netlify/identity
and (of course) failing.I can't find a way to change this. After rebuilding and serving the site, I keep getting the same 'Failed to load' modal, with a 'forgot password' button.
How can I point the CMS to the right URL?