I can access my site’s published
my-site.com/admin page just fine. But when trying to access it locally at
localhost:8000/admin, I get the following message after providing my site’s url.
"Unable to access identity settings. When using git-gateway backend make sure to enable Identity service and Git Gateway."
I have Identity and Git Gateway enabled for the site.
The console error suggests its a CORS issue.
> netlify-cms-app 2.11.3 > netlify-cms-core 2.15.1 > Failed to load resource: the server responded with a status of 401 () > Access to fetch at 'https://my-site.netlify.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: It does not have HTTP ok status.
So I tried adding
Access-Control-Allow-Origin: "*" to the netlify.toml file. But I understand that these don’t affect ./netlify/* paths.
[[headers]] # Define which paths this specific [[headers]] block will cover. for = "/*" [headers.values] Access-Control-Allow-Origin = "*"
That didn’t have any effect.
Unsure what I’ve missed or if this is a bug.