mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
added Access-Control-Allow-Origin header
This commit is contained in:
parent
da16c62d6e
commit
e81bb22565
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue