Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTK webview HTTPS ajax #705

Open
NCrashed opened this issue Nov 26, 2020 · 2 comments
Open

GTK webview HTTPS ajax #705

NCrashed opened this issue Nov 26, 2020 · 2 comments

Comments

@NCrashed
Copy link
Contributor

If you try to request https with servant-reflex on desktop build you will get:

CONSOLE ERROR TLS/SSL support not available; install glib-networking
CONSOLE ERROR XMLHttpRequest cannot load https://localhost:8080/auth/api/login due to access control checks.
file:///home/user/dev/project/admin/front/index.html:386:20: CONSOLE LOG h$wrapBuffer: not an ArrayBuffer
A JavaScript exception was thrown! (may not reach Haskell code)
h$wrapBuffer: not an ArrayBuffer
project-admin-front: JSException

I tried to to add overlay to add glib-networking into gtkwebview, but without any luck:

self: super: {
  webkitgtk = super.webkitgtk.overrideAttrs(oldAttrs: rec {
    buildInputs = oldAttrs.buildInputs ++ [ super.glib-networking ];
    nativeBuildInputs = with super; [
        bison
        cmake
        gettext
        gobject-introspection
        gperf
        ninja
        perl
        pkgconfig
        python3
        ruby
        glib-networking # for gdbus-codegen
        wayland # for wayland-scanner
      ];
  });
}
@danwdart
Copy link

I'm not sure if it's to do with installing it, but compiling webkit2gtk or whichever the package that's complaining with it.

@iogrt
Copy link

iogrt commented Jan 19, 2024

Can someone with more intel point at what package would be the culprit?
My guess is we should be looking at jsaddle-webkit2gtk

EDIT: Seems like webkit2gtk is being deprecated. Should this issue be closed then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants