mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-20 19:55:57 +00:00
Remove cors in webserver - duplicate
Cors enforcement already added to ngnx.conf
This commit is contained in:
@@ -4,7 +4,6 @@ import express from 'express'
|
||||
import expressWs from 'express-ws'
|
||||
import autoindex from 'express-autoindex/dist/index.cjs.js'
|
||||
import nunjucks from 'nunjucks'
|
||||
import cors from 'cors'
|
||||
import 'dotenv/config'
|
||||
import 'wtfnode'
|
||||
|
||||
@@ -63,7 +62,6 @@ if (!wss) {
|
||||
// })
|
||||
|
||||
app.use('/',
|
||||
cors(),
|
||||
(req, res, next) => {
|
||||
if (process.env?.TELEMETRY === 'YES' && !req.url.match(/health/)) {
|
||||
const telemetryData = {
|
||||
|
||||
Reference in New Issue
Block a user