#need help

26 messages · Page 1 of 1 (latest)

solemn ingot
#

the application works well in the dev version, but when I made the build version, everything stopped working, and I can't understand why, since errors are not displayed anywhere, how to debug the build version?

boreal prism
#

try a debug build instead by doing tauri build --debug - if you use npm don't forget the extra --: npm run tauri build -- --debug

#

The app will end up in target/debug/ (it's not the same as tauri dev though)

solemn ingot
#

looks like it's trying to run itself via localhost like on dev but something goes wrong

boreal prism
solemn ingot
#

yes

boreal prism
#

because then it shouldn't try to connect to localhost unless it also does so in your target/release app

solemn ingot
boreal prism
#

yeah, that's wrong

#

you're missing the extra -- i wrote above

#

npm run tauri build -- --debug

#

without it npm doesn't forward the arg to tauri so tauri is still building a release build

solemn ingot
#

it looks like my application is completely broken due to an error in the security policy

index-d31c10c4.js:9388 Refused to connect to 'http://laravel-4.ru/api/connect/sanctum/csrf-cookie' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.

#

your advice with debug helped, thanks, can you also tell me how to fix the policies?

#

it turns out now my application cannot send requests to api

#

I take it this is the fault?

boreal prism
#

yes

solemn ingot
#

I indicated here http but it does not help

#

it would be great to temporarily disable checking for ssl

boreal prism
#

nope, that's built into the browser/webview and we can't disable that without changing the origin, see the issue i linked above