google-chromegoogle-chrome-devtoolsremix.run

"/.well-known/appspecific/com.chrome.devtools.json"' request


I have an app with Remix and Prisma. On the server side console I get this error:

 status: 404,
 statusText: 'Not Found',
 internal: true,
 data: 'Error: No route matches URL "/.well- known/appspecific/com.chrome.devtools.json"',
 error: Error: No route matches URL "/.well-known/appspecific/com.chrome.devtools.json"

Seems like something from chrome dev tools.

How can I prevent this request?

The stack:

"@remix-run/node": "^2.15.3",
"@remix-run/react": "^2.15.3",
"@remix-run/serve": "^2.15.3",
"isbot": "^4.1.0",
"prisma": "^6.8.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"

Solution

  • This is a request made by Chrome's DevTools as part of the Automatic Workspace Folders feature:

    devservers can inform the developer tools running in the browser about the project folders that they are serving, and DevTools can automatically pick that up and connect to these folders during local debugging, and automatically disconnect these folders when the developer navigates somewhere else.

    To disable it, you have to open chrome://flags/#devtools-project-settings in your Chrome browser and disable the flag.

    There’s nothing you can do server-side to prevent this request; if you don’t want to have it hit your app, block it in nginx or whatever reverse-proxy you’re using. If you do want to support it, you can create the route by hand, or use a plugin such as vite-plugin-devtools-json.