Cross-Origin XMLHttpRequest in chrome extensions

前端 未结 1 1882
谎友^
谎友^ 2020-11-28 07:27

According to chrome extensions API cross-origin calls using XMLHttpRequest object should be allowed if permissions are set:

An extension can talk to r

相关标签:
1条回答
  • 2020-11-28 07:46

    Two things; you need to make sure you are making a packaged app/extension and not a hosted one. Cross origin requests will not work with hosted apps. Assuming you got that part pinned down, you may want to try to put the following into your permissions: http://*/ . That's the only one I have for one of my packaged apps, and it does cross origin stuff without any problems.

    0 讨论(0)
提交回复
热议问题