Skip to content

Getting Error affects Humans output #192

Answered by vladmandic
YaraAmin asked this question in Q&A
Discussion options

You must be logged in to vote

As a security measure, Chrome enforces CORS (cross-origin resource sharing) rules so
nobody can access DOM element properties directly

You need to set appropriate HTTP header on your web server if you want to access property directly

If you're using human built-in dev server, it sets it for you
If you're using your own (or using NextJS which does it for you), you have to configure CORS rules
See https://enable-cors.org/server.html for examples

Replies: 2 comments 1 reply

Comment options

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

You must be logged in to vote
1 reply
@vladmandic
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
2 participants