mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-12-05 08:48:11 +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 expressWs from 'express-ws'
|
||||||
import autoindex from 'express-autoindex/dist/index.cjs.js'
|
import autoindex from 'express-autoindex/dist/index.cjs.js'
|
||||||
import nunjucks from 'nunjucks'
|
import nunjucks from 'nunjucks'
|
||||||
import cors from 'cors'
|
|
||||||
import 'dotenv/config'
|
import 'dotenv/config'
|
||||||
import 'wtfnode'
|
import 'wtfnode'
|
||||||
|
|
||||||
@@ -63,7 +62,6 @@ if (!wss) {
|
|||||||
// })
|
// })
|
||||||
|
|
||||||
app.use('/',
|
app.use('/',
|
||||||
cors(),
|
|
||||||
(req, res, next) => {
|
(req, res, next) => {
|
||||||
if (process.env?.TELEMETRY === 'YES' && !req.url.match(/health/)) {
|
if (process.env?.TELEMETRY === 'YES' && !req.url.match(/health/)) {
|
||||||
const telemetryData = {
|
const telemetryData = {
|
||||||
|
|||||||
Reference in New Issue
Block a user