Thread:User talk:Kephir/Gadgets and cross-origin resource sharing

I'd like to build a gadget similar to Quiet Quentin which would allow an editor to automatically import usage examples from tatoeba.org (short description here: Tatoeba-gadget). How can I build a gadget which makes cross-site requests? Is there a process for whitelisting? I guess it needs the  header set.