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

Working accross domain #617

Closed
eki27 opened this issue May 3, 2021 · 1 comment
Closed

Working accross domain #617

eki27 opened this issue May 3, 2021 · 1 comment

Comments

@eki27
Copy link

eki27 commented May 3, 2021

Hello dears, I tested the API with a small web reader project.

It works fine locally, my android phone can directly request and read nfc with my local web server IP address :)

I decided to publish the same test over a public web server, over a regular dns with ssl (not dedicated server)... unfortunately I get a Not allowed error message (NFC permission request denied) from the API trough the javascript debugging.

Do you have some advice to solve this issue ?

Thank you and good evening

@eki27
Copy link
Author

eki27 commented May 3, 2021

I'm sorry, my eventlistener was on the window objet, the API need autorisation the first time it be used on a website.

The window cannot give the authorisation itself...

The API works perfectly fine :)

@eki27 eki27 closed this as completed May 3, 2021
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

1 participant