You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chrome Devtools data appears in params in load #13863
Ehhh. That incoming request does match that route, so in that sense, this is correct behavior. I don't know that we want to hardcode that specific URL within SvelteKit and prevent those requests from reaching your app. If someone had implemented their own handling of this file from within their SvelteKit app itself, doing that would be a breaking change for them.
Ehhh. That incoming request does match that route, so in that sense, this is correct behavior. I don't know that we want to hardcode that specific URL within SvelteKit and prevent those requests from reaching your app. If someone had implemented their own handling of this file from within their SvelteKit app itself, doing that would be a breaking change for them.
That's true... maybe it could be an option in the svelte config or something? I'm okay with using ChromeDevTools/vite-plugin-devtools-json as an solution. But maybe it should be more documented than just a dev-warning in the terminal?
elliott-with-the-longest-name-on-github commented on Jun 9, 2025
@MathiasWP as much as I hate it this is really just a Google Chrome problem. They've taken it upon themselves to start sending these random requests to your application. In this case you have a route that matches that request, so that route gets run. In your case (if you're not trying to do anything with Chrome Devtools), you could just create a /routes/appspecific/com.chrome.devtools.json/.well-known/+server.ts file that responds with 404 Not Found to avoid it matching your catchall params.
elliott-with-the-longest-name-on-github commented on Jun 9, 2025
Going to close this for now, as it's basically intended behavior -- Chrome is sending a request to your app, and you're serving a response. I would definitely recommend joining the chorus complaining to Chrome about sending stupid requests to your app without asking.
Activity
Conduitry commentedon Jun 6, 2025
Ehhh. That incoming request does match that route, so in that sense, this is correct behavior. I don't know that we want to hardcode that specific URL within SvelteKit and prevent those requests from reaching your app. If someone had implemented their own handling of this file from within their SvelteKit app itself, doing that would be a breaking change for them.
MathiasWP commentedon Jun 6, 2025
That's true... maybe it could be an option in the svelte config or something? I'm okay with using ChromeDevTools/vite-plugin-devtools-json as an solution. But maybe it should be more documented than just a dev-warning in the terminal?
elliott-with-the-longest-name-on-github commentedon Jun 9, 2025
@MathiasWP as much as I hate it this is really just a Google Chrome problem. They've taken it upon themselves to start sending these random requests to your application. In this case you have a route that matches that request, so that route gets run. In your case (if you're not trying to do anything with Chrome Devtools), you could just create a
/routes/appspecific/com.chrome.devtools.json/.well-known/+server.tsfile that responds with 404 Not Found to avoid it matching your catchall params.elliott-with-the-longest-name-on-github commentedon Jun 9, 2025
Going to close this for now, as it's basically intended behavior -- Chrome is sending a request to your app, and you're serving a response. I would definitely recommend joining the chorus complaining to Chrome about sending stupid requests to your app without asking.