-
Hello 👋 I have a particular use-case that I'm having trouble understanding how I can setup correctly. What I have right now does not seem to work. Here's the requirement I want to load my primary extension as a sidepanel which loads on all sites in an iframe (for the security benefits). This is a react application. To load the iframe, I went with the suggestion over here but it does not seem to work. It seems I cannot make the index.html file for the iframe load the react application. Here's what I have so far (I've left comments)
The iframe is injected correctly into every page and the contents of the iframe also show
It seems the react app intented to load in the iframe is not being built. Any suggestions on how I can achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Changing the -- edit Works well with |
Beta Was this translation helpful? Give feedback.
Changing the
iframe.src
tohttp://localhost:5173/app
seems to get it working in development environment, not yet tested for production.-- edit
Works well with
vite build
. I'm taking the iframe src from env.