Skip to content

Commit ddeda4e

Browse files
committed
Fix CORS custom headers.
1 parent ce8e666 commit ddeda4e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

changes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
- fixed: unit testing (author: @ckpiggy)
6060
- fixed: `schema.setPrefix()` in nested schemas
6161
- fixed: sitemap localization
62+
- fixed: CORS custom headers
6263

6364
- improved: performance and security
6465

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ global.CORS = F.cors = function(url, flags, credentials) {
15081508
methods.push(flag.toUpperCase());
15091509
break;
15101510
default:
1511-
headers.push(flags[i]);
1511+
headers.push(flags[i].toLowerCase());
15121512
break;
15131513
}
15141514
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"name": "luoage",
8585
"email": "luoage@msn.cn"
8686
}],
87-
"version": "2.9.0-5",
87+
"version": "2.9.0-6",
8888
"homepage": "http://www.totaljs.com",
8989
"bugs": {
9090
"url": "https://github.com/totaljs/framework/issues",

0 commit comments

Comments
 (0)