CLI - cannot login due to CORS error error on localhost:5555

Hi,

Using prismic-cli, running prismic login or prismic signup doesn't work.

In Safari, I get:

  • On the website:

    It looks like your CLI is unreachable, please refresh the page.

  • In the browser console:

    Fetch API cannot load http://localhost:5555/ due to access control checks.

In Firefox, I get:

  • On the website:

    It looks like your CLI is unreachable, please refresh the page.

  • In the browser console:

    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:5555/. (Reason: CORS request did not succeed).

In Chrome, I get:

  • On the website:

    It looks like your CLI is unreachable, please refresh the page.

  • In the browser console:

    Failed to load resource: net::ERR_ADDRESS_INVALID

This is a bit of a bummer as now I can't follow the tutorial to do anything. Can you help?

Best,

Benjamin

System information:
Node v16.10.10
macOS v11.6
zsh 5.8 (x86_64-apple-darwin20.0)

Hey @bdobs ,

Welcome to the community!

I haven’t seen this issue before and can’t recreate it, so I'm reaching out to the team for some help.

For now, can you tell me your CLI version by running prismic --version

Thanks.

This thread has been closed due to inactivity. Flag to reopen.

Experiencing the same issue

Hi Kevin,

Can you tell me your CLI version by running prismic --version

Thanks.

Threads close after a period of inactivity. Flag this thread to re-open it and continue the conversation.

I'm seeing the same thing running prismic login and npx @slicemachine/init.

using versions:
prismic-cli/4.2.2 darwin-x64 node-v14.17.6

Was able to get it working in Firefox. My original attempts were in Chrome.

1 Like

Hello, I have a similar issue, I was struggling to login, did it once, but today I could not; I use Chrome on Mac, first time I managed to login with Yandex browser. When I enter on http://localhost:9999/ it says login required, and when I try to login - the Oups messages appears and this in console: Access to fetch at 'http://localhost:5555/' from origin 'https://prismic.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Private-Network' header was present in the preflight response for this private network request targeting the local address space.
localhost:5555/:1
Failed to load resource: net::ERR_FAILED
I use prismic-cli/4.2.3 darwin-arm64 node-v20.11.0
Thanks in advance!

Hi,

Thank you for your patience as we work to resolve the login issues with Slice Machine.
It would be helpful if you could provide the following additional information to help our investigation:

  • Detailed reproduction use case step by step (e.g.: 1. open Slice Machine, 2. Click on "Login required", 3. ...)
  • Names of all the browsers you have tried and indicate whether the login was successful or not in each case.
  • Attempt to log in using incognito/private mode and note whether this affects the issue.
  • Specific cookie settings for each browser, especially regarding third-party cookies.
  • Information about the network(s) on which the issue occurs (e.g., home, work, VPN or not).
  • Details about the device and operating system you're using.

These details will help us find the underlying cause of the problem and in developing a solution.

In the meantime, if the login is working with a specific browser, we recommend that you use this one for Slice Machine.

Thanks.

@xavier.rutayisire I ran into the bug on Chrome 127.0.6533.122 on a macbook, ad blocker turned off. `Incognito didn't work either. Using FireFox I could login.

Hi @lefgroningen ,

Can you provide a detailed reproduction use case step by step (e.g.: 1. open Slice Machine, 2. Click on "Login required", 3. ...)

As well as information about the network(s) on which the issue occurs (e.g., home, work, VPN or not).