Skip to content

In DevServer mode request for /favicon.ico is proxied to the back-end #2324

Closed
@mihhail-lapushkin

Description

@mihhail-lapushkin

Does anyone else have this problem?
This started happening with react-scripts >= 1.0.0
Using Chrome 58.0.3029.110 and react-scripts 1.0.4

In index.html everything is same:

<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">

Activity

subk

subk commented on May 22, 2017

@subk

Same for me when I use the proxy property in package.json, which makes sense.
Probably because of react-dev-utils/WebpackDevServerUtils.js#L273 ?

gaearon

gaearon commented on May 22, 2017

@gaearon
Contributor

Could be related to changes to proxy handling in #1790.

cc @jamesblight @Timer

gaearon

gaearon commented on May 22, 2017

@gaearon
Contributor

I’m confused why logo.svg does not attempt to go through the proxy but favicon.ico does.

gaearon

gaearon commented on May 22, 2017

@gaearon
Contributor

I guess there’s a bigger issue here: every file in public folder tries to go through the proxy. This is a critical bug, as it breaks any app relying on public folder.

added this to the 1.0.5 milestone on May 22, 2017
gaearon

gaearon commented on May 22, 2017

@gaearon
Contributor

Fixed in react-scripts@1.0.5.

locked and limited conversation to collaborators on Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @gaearon@mihhail-lapushkin@subk

      Issue actions

        In DevServer mode request for /favicon.ico is proxied to the back-end · Issue #2324 · facebook/create-react-app