#Can't call invoke on external website

29 messages · Page 1 of 1 (latest)

tight summit
#

I'm trying to use invoke from external url in webview with dev branch of tauri.
And it shows error in the console (attached image)

I can't use invoke on that website at all.

Steps to check it:

  1. git clone https://github.com/tauri-apps/tauri
  2. modify tauri.config.json in helloworld and remove default window
  3. modify main.rs of helloworld example with main.rs and run it, then open console
stable pebble
tight summit
stable pebble
#

adding an option

#

switching every user/app back to the old ipc would be horrible lol

#

the option should be fairly easy to add because the old ipc is still in use on old linux versions where the new one can't be used

tight summit
stable pebble
#

the question is how you want to do that

tight summit
tight summit
stable pebble
#

not possible

#

well, maybe with a proxy or something

#

but not with the webview apis themselves

#

at least if you need cross platform support

tight summit
stable pebble
#

yes

#

cc @coral bridge

#

(or should that be handled automatically somehow? probably not worth and would probably cause more issues than it solves)

coral bridge
#

if you control the remote website you could still use the new IPC right?

#

then yes it should be an option on the builder

#

yikes

tight summit
stable pebble
#

this is all completely irrelevant

#

except the part saying that the older ipc is slower and not recommended of course

tight summit
stable pebble
#

hmm, i wouldn't say that. the settings you posted are applied to the webview too, but they have no effect on the csp

#

but my main reason to say this was that your screenshot was windows and what you posted is macos-only