You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unauthorized When Sending Production Origin Header #9
I'm able to use https://thingproxy.freeboard.io/fetch/http://79.111.119.111:9107/7.html successfully via Postman and my web app in the browser while sending http://localhost:4200 as the Origin header.
However, when I set Origin to my production URL (http://radio.browninglogic.com) (both from Postman and from the deployed web app), I get the following:
Strangely enough, when I clone and run the API locally, it appears to work properly even with the same Origin header that's causing it to fail when using the deployed site (http://thingproxy.freeboard.io/fetch/url).
Can you point me in the right direction? Is there something that I'm missing?
edit your exports.blacklist_hostname_regex value inside the config.js file or set it within your code to allow for localhost.
// Original Value// exports.blacklist_hostname_regex = /^(10\.|192\.|127\.|localhost$)/i;// Allow for localhostexports.blacklist_hostname_regex=/^(10\.|192\.|127\.)/i;
Activity
zinthose commentedon Jun 27, 2020
edit your
exports.blacklist_hostname_regexvalue inside theconfig.jsfile or set it within your code to allow for localhost.