javascript - cross-site requests & browsers addons -


i'm trying develop basic firefox addon "new" webextensions system.

i'd

  1. extract text web page (not owned me)
  2. evaluate using remote website
  3. 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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -