interledger / web-monetization-extension

An open-source browser extension that enables Web Monetization.
Apache License 2.0
46 stars 2 forks source link

Define host permissions and allowed protocols in webpack config #339

Closed raducristianpopa closed 1 week ago

raducristianpopa commented 1 week ago

Just for testing purposes at the moment, since I was testing this on a local website.

Thoughts on moving the host permissions here

https://github.com/interledger/web-monetization-extension/blob/992b3460c0dce051b182f0d1a169535d2283a25d/src/shared/defines.ts#L1-L5

and define them in the webpack config based on the environment ala:

https://github.com/interledger/web-monetization-extension/blob/992b3460c0dce051b182f0d1a169535d2283a25d/webpack/dev.ts#L42-L44

_Originally posted by @raducristianpopa in https://github.com/interledger/web-monetization-extension/pull/333#discussion_r1639612349_