zeanium-node
Advanced tools
Comparing version 0.6.1 to 0.6.2
{ | ||
"name": "zeanium-node", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Zeanium for Node.js, simple http server and custome your business.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -77,5 +77,6 @@ /** | ||
if('OPTIONS' == request.method){ | ||
var _name = _package.name + '@' + _package.version; | ||
var _name = _package.name + '@' + _package.version, | ||
_origin = this._request._serverRequest.headers.origin || this._request._serverRequest.headers.host || this._request._serverRequest.headers.Host || ''; | ||
response.writeHead(200, { | ||
'Access-Control-Allow-Origin': request.headers.origin, | ||
'Access-Control-Allow-Origin': _origin, | ||
'Access-Control-Allow-Methods': 'POST, GET, OPTIONS, DELETE, PUT', | ||
@@ -82,0 +83,0 @@ 'Access-Control-Allow-Headers': 'Accept,Accept-Charset,Accept-Encoding,Accept-Language,Connection,Content-Type,Cookie,DNT,Host,Keep-Alive,Origin,Referer,User-Agent,X-CSRF-Token,X-Requested-With', |
@@ -73,3 +73,3 @@ /** | ||
_session = this._request._session, | ||
_origin = this._request._serverRequest.headers.origin || this._request._serverRequest.headers.Host; | ||
_origin = this._request._serverRequest.headers.origin || this._request._serverRequest.headers.host || this._request._serverRequest.headers.Host || ''; | ||
@@ -76,0 +76,0 @@ var _crossSetting = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249067
5914