Skip to content

Commit 7ff493f

Browse files
committed
fix: in localhost login dev server, this was not working
1 parent 2ebfd52 commit 7ff493f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

serve-proxy.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* eslint-env node */
33

44
const http = require('http');
5-
const https = require('https');
65
const url = require('url');
76
const path = require('path');
87
const fs = require('fs');
@@ -90,8 +89,6 @@ proxy.on('proxyReq', (proxyReq, req) => {
9089
if (originalOrigin && originalOrigin.includes('localhost:8000')) {
9190
const newOrigin = originalOrigin.replace(/localhost:8000/g, 'phcode.dev');
9291
proxyReq.setHeader('Origin', newOrigin);
93-
} else if (!originalOrigin) {
94-
proxyReq.setHeader('Origin', 'https://phcode.dev');
9592
}
9693

9794
// Ensure HTTPS scheme

0 commit comments

Comments
 (0)