Skip to content
#

aspnetcore

Here are 2,302 public repositories matching this topic...

JakeYallop
JakeYallop commented Aug 8, 2021

The problem

The new NET 6.0 React SPA template uses the http-proxy-middleware package to proxy http requests from the React dev server to ASP Net Core.

If a project uses websockets, these need to be proxied in a specific way:

// ./src/setupProxy.js 

const myWebsocketProxy = createProxyMiddleware("/hub", {
    ws: true,
    //... other settings
});

Unfortun

Improve this page

Add a description, image, and links to the aspnetcore topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the aspnetcore topic, visit your repo's landing page and select "manage topics."

Learn more