Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify proxy instructions in generated app README #537

Merged
merged 2 commits into from
Sep 2, 2016

Conversation

crcastle
Copy link

@crcastle crcastle commented Sep 1, 2016

Update instructions for proxy feature added in #282 to clarify that requests with text/html accept header will not be proxied.

Related to #523.

@ghost ghost added the CLA Signed label Sep 1, 2016
@@ -488,15 +488,15 @@ To tell the development server to proxy any unknown requests to your API server
"proxy": "http://localhost:4000",
```

This way, when you `fetch('/api/todos')` in development, the development server will recognize that it’s not a static asset, and will proxy your request to `http://localhost:4000/api/todos` as a fallback.
This way, when you `fetch('/api/todos')` in development, the development server will recognize that it’s not a static asset, and will proxy your request to `http://localhost:4000/api/todos` as a fallback. The development server will only attempt to send requests without a text/html accept header to the proxy.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please put text/html into backticks?

@gaearon gaearon merged commit 841ae04 into facebook:master Sep 2, 2016
@gaearon
Copy link
Contributor

gaearon commented Sep 2, 2016

Thanks.

stayradiated pushed a commit to stayradiated/create-react-app that referenced this pull request Sep 7, 2016
* Clarify proxy instructions in generated app README

* Add backticks to format text/html as code
feiqitian pushed a commit to feiqitian/create-react-app that referenced this pull request Oct 25, 2016
* Clarify proxy instructions in generated app README

* Add backticks to format text/html as code
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants