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

WebSdk not found in react #33

Closed
Bartik-ing-programmer opened this issue Sep 12, 2022 · 3 comments
Closed

WebSdk not found in react #33

Bartik-ing-programmer opened this issue Sep 12, 2022 · 3 comments

Comments

@Bartik-ing-programmer
Copy link

Bartik-ing-programmer commented Sep 12, 2022

I have the same problem

I have tried to solve with the suggestions that they show in that issue, and none of them gives me the solution.

I am currently working on an app that integrates React and Electron with Javascript

image


index.html

image

I have this error in the execution the script in index.html

Blocked script execution in 'data:text/html' ...(path index.html)...
because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
@Bartik-ing-programmer Bartik-ing-programmer changed the title WebSdk not found WebSdk not found in react Sep 14, 2022
@teknosains
Copy link

I have same issue here, look likes the @Digitalpersona modules incluse WebSdk but its not there. in the tutorial, WebSdkl should be loading as a reguler JS modules, not a nodejs module...well its frustating

@a-bronx
Copy link
Member

a-bronx commented Feb 14, 2023

Hello!

Are you trying to load the library into NodeJS like a regular node module? It won't work, both the library and WebSdk are browser-only and must be loaded into a browser, together.

Also note, we do not guarantee the library working in Electron, never tested it. To works with native drivers of fingerprint readers the library uses a connection from a browser context to the loopback (localhost) endpoint provided by the DigitalPersona Lite client. Electron may or may not block this.

The blocked script execution is a probably a CORS issue due to violation of a same-origin policy, not a library issue.

@fayizqureshii
Copy link

Hey, @Bartik-ing-programmer . Do you figure this out with react?

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

4 participants