Closed JulieMarie closed 2 years ago
Hi, I did not quite understood the usage of this code snippet, does this issue related to nx-electron or to electron in general? Anyway, you might need to bypass the file protocol CSP (but that is just a hunch).
It's related to nx-electron, but before I ask any more questions, I'll look into the link you provided, thanks! I'll let you know what I find.
Closing this as the issue seems to be more related to how we authenticate and not the electron app itself.
I've successfully built and served one of our Angular apps locally, but when I package it up using
nx run <electron-app-name>:package
, the proxying isn't working.This is my
proxy.conf.js
:When the app loads, it should redirect via
/start-login
to our authentication with the correctredirect_uri
to get us back once we've logged in. What I'm ending up with is:Not allowed to load local resource: file:///start-login
I feel like it could be solved with
registerFileLocal
that I've read about in electron documentation, but then again, maybe that's supposed to be resolved by this?Any help would be greatly appreciated. I feel like I'm almost there, but missing just one key piece.