Ajax In Firefox Plugin

后端 未结 3 1078
难免孤独
难免孤独 2020-12-18 12:17

Is there any way to send Ajax requests to server from a Firefox plugin? If yes, how? If no, how do we have client server communication in Firefox plugins?

I want to

3条回答
  •  自闭症患者
    2020-12-18 13:08

    From a contentscript you should add the permissions to access cross-domain content, URLs you want to:

    "permissions": {
        "cross-domain-content": ["http://example.org/", "http://example.com/"]
    }
    

    More info in the documentation.

提交回复
热议问题