fix cors expose headers

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