fix cors expose headers
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ export default
|
|||||||
if (!cluster.isPrimary) {
|
if (!cluster.isPrimary) {
|
||||||
const app = express()
|
const app = express()
|
||||||
app.use(express.json())
|
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) => {
|
app.get('/', (req, res) => {
|
||||||
res.send('Tone client API online')
|
res.send('Tone client API online')
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user