Duolith docs

Errors E0500 to E0599

E0570 Dev server refused another site

Message refused a request for path: reason

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

duolith dev answers only its own pages (WP17). A request whose Host is not this server (localhost, or an address written as numbers, with its port), whose Origin is another site, or that a page on another site made (Sec-Fetch-Site) is refused with 403, so a web page open in the same browser can neither read the app's modules nor listen on the reload channel, and a name that only resolves to this computer (DNS rebinding) reads nothing. A page may still be opened by following a link from anywhere; nothing it loads may be. The native dev server applies the same rule to its bundle and socket. Each reason is printed once.

How to fix it

Nothing, if you did not expect the request: it was refused. If it was yours, open the app at the address duolith dev printed (http://localhost:<port>/), not through another name for this computer or a page that embeds it.

In a terminal

duolith explain E0570

Mentioned in