File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
packages/angular/build/src/builders/dev-server/vite Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,7 @@ async function createServerConfig(
6060 headers : serverOptions . headers ,
6161 // Disable the websocket if live reload is disabled (false/undefined are the only valid values)
6262 ws : serverOptions . liveReload === false && serverOptions . hmr === false ? false : undefined ,
63- // When server-side rendering (SSR) is enabled togather with SSL and Express is being used,
64- // we must configure Vite to use HTTP/1.1.
65- // This is necessary because Express does not support HTTP/2.
66- // We achieve this by defining an empty proxy.
67- // See: https://github.com/vitejs/vite/blob/c4b532cc900bf988073583511f57bd581755d5e3/packages/vite/src/node/http.ts#L106
68- proxy :
69- serverOptions . ssl && ssrMode === ServerSsrMode . ExternalSsrMiddleware ? ( proxy ?? { } ) : proxy ,
63+ proxy,
7064 cors : {
7165 // This will add the header `Access-Control-Allow-Origin: http://example.com`,
7266 // where `http://example.com` is the requesting origin.
You can’t perform that action at this time.
0 commit comments