Skip to content

The context/environment is not secure #83

Answered by sebastianvitterso
madtag asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @madtag!
This error is thrown by pkceUtils.ts:24-30.
It can happen because of an outdated browser, but it's probably rather because you are trying to use it in an "unsecure context" where SubtleCrypto is disabled automatically by the browser (for security reasons). (MDN docs on crypto.subtle)

Any url that starts with http:// instead of https:// (except localhost, I think) are considered insecure automatically.

Two quick ways to check if this is the issue:

  1. Tap the address bar in your browser, and copy and paste it. Does it say http:// at the beginning (and the rest isn't localhost) - then that's your issue.
  2. To check whether javascript considers the website to be secure, simply open yo…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by madtag
Comment options

You must be logged in to vote
6 replies
@soofstad
Comment options

@madtag
Comment options

@soofstad
Comment options

@madtag
Comment options

@soofstad
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants