@nakedcreativity/cee-ms-node 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -59,9 +59,7 @@ function ceems(config) {
|
|
|
59
59
|
|
|
60
60
|
if(config.response && config.response.headers){
|
|
61
61
|
_.each(config.response.headers, header=>{
|
|
62
|
-
|
|
63
|
-
res.header(header)
|
|
64
|
-
|
|
62
|
+
res.header(header[0], header[1])
|
|
65
63
|
})
|
|
66
64
|
}
|
|
67
65
|
next();
|
|
@@ -201,7 +199,7 @@ ceems.prototype.auto = function(req, res) {
|
|
|
201
199
|
var finish = Date.now()
|
|
202
200
|
console.log(finish - start, 'render time')
|
|
203
201
|
console.log('..................')
|
|
204
|
-
|
|
202
|
+
res.header('X-FRAME-OPTIONS', 'ALLOW-FROM localhost:3006');
|
|
205
203
|
res.send(html)
|
|
206
204
|
})
|
|
207
205
|
|