Skip to content

Commit 6424232

Browse files
frontsideairgaearon
authored andcommitted
Reflect websocket proxy support on README (#1013) (#1483)
* Reflect websocket proxy support on README * Add 'the'
1 parent 8964dd6 commit 6424232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/template/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ Fetch API cannot load http://localhost:4000/api/todos. No 'Access-Control-Allow-
650650

651651
Keep in mind that `proxy` only has effect in development (with `npm start`), and it is up to you to ensure that URLs like `/api/todos` point to the right thing in production. You don’t have to use the `/api` prefix. Any unrecognized request without a `text/html` accept header will be redirected to the specified `proxy`.
652652

653-
Currently the `proxy` option only handles HTTP requests, and it won’t proxy WebSocket connections.<br>
653+
The `proxy` option supports HTTP, HTTPS and WebSocket connections.<br>
654654
If the `proxy` option is **not** flexible enough for you, alternatively you can:
655655

656656
* Enable CORS on your server ([here’s how to do it for Express](http://enable-cors.org/server_expressjs.html)).

0 commit comments

Comments
 (0)