NeteaseCloudMusicApi
Advanced tools
Comparing version 2.6.4 to 2.6.5
14
app.js
@@ -10,8 +10,10 @@ const express = require('express') | ||
// app.all('*', function (req, res, next) { | ||
// res.header("Access-Control-Allow-Credentials", true) | ||
// res.header("Access-Control-Allow-Origin", "*") | ||
// res.header("Access-Control-Allow-Headers", "X-Requested-With") | ||
// res.header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS") | ||
// res.header("X-Powered-By", ' 3.2.1') | ||
// res.header("Content-Type", "application/json;charset=utf-8") | ||
// if (req.path !== '/' && !req.path.includes('.')) { | ||
// res.header('Access-Control-Allow-Credentials', true) | ||
// // 这里获取 origin 请求头 而不是用 * | ||
// res.header('Access-Control-Allow-Origin', req.headers['origin'] || '*') | ||
// res.header('Access-Control-Allow-Headers', 'X-Requested-With') | ||
// res.header('Access-Control-Allow-Methods', 'PUT,POST,GET,DELETE,OPTIONS') | ||
// res.header('Content-Type', 'application/json;charset=utf-8') | ||
// } | ||
// next() | ||
@@ -18,0 +20,0 @@ // }) |
{ | ||
"name": "NeteaseCloudMusicApi", | ||
"version": "2.6.4", | ||
"version": "2.6.5", | ||
"description": "网易云音乐 NodeJS 版 API", | ||
@@ -5,0 +5,0 @@ "scripts": { |
78521
2416