javascript - cross-site requests & browsers addons -
i'm trying develop basic firefox addon "new" webextensions system.
i'd
- extract text web page (not owned me)
- evaluate using remote website
- post in same page result
the problem how make web request addon (point 2). found use xmlhttprequest, imagined security reasons can't access remote paths.
that because (i guess) javascript code run inside page, though had thought addon be... external.
of course result inside page, assume addon work proxy make request. said have no idea how , should do.
i don't want use strange trick (like removing security control), i'd "right" way.
what don't understand if addons bounded run within page made for.
edit: ok, turns out chrome docs better mozilla one. use xhr cross-site req have put additional line of code in manifest.
{... "permissions": [ "http://random.com/" ], }..
i'm still not sure if proper way aim though.
to use xhr cross-site req have put additional line of code in manifest.
{... "permissions": [ "http://random.com/" ], }
Comments
Post a Comment