#Iframe without source with new csp rules

3 messages · Page 1 of 1 (latest)

stark halo
#

I have an Iframe that does not have a source url (i write the html content to it using js). Due to the csp rules, i keep getting the following error: cope not defined for window 'main' and URL 'about:blank'. I though I could fix this by adding the following to my tauri config:

"dangerousRemoteDomainIpcAccess": [
  {
    "domain": "about:blank",
    "windows": ["main"],
    "enableTauriAPI": false,
  }
]
```,
But the error keeps persisting
steep pulsar
#

Wouldn't it be better to just actually load an html file? It can load the js you have as well and then update the DOM. It sounds like you're making things more difficult for yourself than it has to be

sterile oasis