Safari Web Extension allow external connection from any website

Hey! We are developing a Safari Web Extension which requires the background script for localhost Web Socket communication (it doesn't work if we try to connect from the injected content script), everything works fine but we need it to be accessible from any URL since we have a SDK that is distributed to the customers and the domain name depends on each of them, is there a way to do this? Or is there any workaround to not have to use browser.runtime.connect or browser.runtime.sendMessage for communication between the injected content script and the background script? We have tried to use <all_urls> but that's not allowed for externally_connectable. Thanks!

Post not yet marked as solved Up vote post of JAHMCRIBM Down vote post of JAHMCRIBM
329 views
  • At a high-level, what we would like to know is whether it is allowed to build a web extensions that can allow external connection from any website? If no, where is this documented? If yes, how can we enable this in the config?

    Thanks in advance!

Add a Comment