fix cors for file size and encoding

This commit is contained in:
2023-05-26 14:25:09 +02:00
parent 7fbb068e42
commit d49e9232f5
+1 -1
View File
@@ -33,7 +33,7 @@ export default
if (!cluster.isPrimary) {
const app = express()
app.use(express.json())
app.use(cors())
app.use(cors({ allowedHeaders: ['X-File-Size', 'Content-Encoding'] }))
app.get('/', (req, res) => {
res.send('Tone client API online')
})