fix cors for file size and encoding
This commit is contained in:
+1
-1
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user