fix cors err

add emit viewer for accept nginx req from proxy
This commit is contained in:
Mr Swift
2024-08-14 16:40:40 +03:30
parent 777293410c
commit be757caaba
6 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -17,7 +17,7 @@ function init() {
// const { getVerityToken, getPanatechToken } = require('./ArpaWebService')
const cronJobs = require('./plugins/cronJobs')
const router = express.Router()
const cors = require('cors')
// Create express instance
const app = express()
@@ -26,6 +26,7 @@ function init() {
app.use(express.urlencoded({ extended: true }))
app.use(fileUpload())
app.use(rs)
app.use(cors())
console.log('🟢 ~ Node Server is running ')
// load plugins
// getVerityToken()