Skip to content

Previews stopped working on localhost #133

Description

@DaanKorver

For reason, as of today (19-03-2026), localhost stopped working for live previews for me.

I am getting the following error:
Access to fetch at 'http://localhost:3000/api/preview-links?token=MY_CUSTOM_TOKEN' from origin 'https://plugins-cdn.datocms.com' has been blocked by CORS policy: Permission was denied for this request to access the 'loopback' address space.

I am confused as of why this is occuring. I have the correct headers set on my endpoints

  • 'Access-Control-Allow-Origin': '*'
  • 'Access-Control-Allow-Methods': 'POST'
  • 'Access-Control-Allow-Headers': 'Content-Type, Authorization'
  • 'Content-Type': 'application/json'

Is there anything that changed all of a sudden? It was working yesterday without any issues. All of my live previews for localhost stopped working.

The network request is giving me the following:

Image

Which is also weird because Dato has access to my Local network

Image

Next Version: 15.4.8
Chromium: 146.0.7680.80
Web Previews Plugin: 1.0.32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions