Skip to content

Commit 4db9769

Browse files
authored
Merge pull request acode#20 from jacoblee93/master
Add x-execution-uuid header to access-control-expose-headers response
2 parents 3f96879 + ed4860a commit 4db9769

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/gateway.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ class Gateway extends EventEmitter {
142142
}, {});
143143
headers['access-control-allow-origin'] = headers['access-control-allow-origin'] || '*';
144144
headers['access-control-allow-headers'] = headers['access-control-allow-headers'] || req.headers['access-control-request-headers'] || '';
145-
headers['access-control-expose-headers'] = Object.keys(headers).join(', ');
146145
headers['x-functionscript'] = 'true';
146+
headers['access-control-expose-headers'] = Object.keys(headers).concat('x-execution-uuid').join(', ');
147147
return headers;
148148
}
149149

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "functionscript",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "A language and specification for turning JavaScript functions into typed HTTP APIs",
55
"author": "Keith Horwood <[email protected]>",
66
"main": "index.js",

0 commit comments

Comments
 (0)