added Access-Control-Allow-Origin header

This commit is contained in:
coderaiser 2013-04-25 04:47:42 -04:00
parent da16c62d6e
commit e81bb22565
2 changed files with 6 additions and 4 deletions

View file

@ -2,6 +2,8 @@
* Changed jquery cdn to one with https suport jquery.com -> google cdn.
* Added Access-Control-Allow-Origin header.
2012.04.22, v0.2.0

View file

@ -193,11 +193,11 @@
if( Util.isContainStr(p.query, 'download') )
lType = 'application/octet-stream';
lRet = {
'Content-Type': lType + lContentEncoding,
'last-modified': new Date().toString(),
'Vary': 'Accept-Encoding'
'Access-Control-Allow-Origin' : '*',
'Content-Type' : lType + lContentEncoding,
'last-modified' : new Date().toString(),
'Vary' : 'Accept-Encoding'
};
if( !Util.strCmp(lExt, '.appcache') && p.cache)