Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

@youpy
CreatedOctober 21, 2010 15:07
    • Star(0)You must be signed in to star a gist
    • Fork(0)You must be signed in to fork a gist
    Save youpy/638634 to your computer and use it in GitHub Desktop.
    varCc=Components.classes;
    varCi=Components.interfaces;
    varobserverService=Cc['@mozilla.org/observer-service;1'].getService(Ci.nsIObserverService);
    varhttpResponseObserver=
    {
    observe:function(subject,topic,data)
    {
    if(topic=="http-on-examine-response"){
    varhttpChannel=subject.QueryInterface(Components.interfaces.nsIHttpChannel);
    httpChannel.setResponseHeader("Access-Control-Allow-Origin","",false);
    }
    }
    };
    observerService.addObserver(httpResponseObserver,'http-on-examine-response',false);
    Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

    [8]ページ先頭

    ©2009-2025 Movatter.jp