Auth0 Home Blog Docs

Refused to set unsafe header "accept-encoding"

lock-10

#1

I created a reusable React components using auth0-lock package.
It works great in a pure frontend Webpack+React app. However when setting it up in another Meteor+React app, I got following errors in browser.

Refused to set unsafe header "accept-encoding"
Refused to set unsafe header "user-agent"

Exactly same issue as described here. Is there a way to force using browser version of auth0-lock?


#2

It works if I use CDN lock and copy and paste codes for my reusable component.

But I would like to reuse my component via a simple import, is there a way similar to import Auth0Lock from 'auth0-lock/browser'; to ensure that I get browser version of Lock?


#3