# Static content requires auth with httpNodeAuth

**URL:** <https://discourse.nodered.org/t/static-content-requires-auth-with-httpnodeauth/13809>\
**Category:** General\
**Created:** [29 July 2019 20:55 UTC](https://discourse.nodered.org/t/static-content-requires-auth-with-httpnodeauth/13809 "2019-07-29T20:55:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pakerfeldt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pakerfeldt/32/3101_2.png) [@pakerfeldt](https://discourse.nodered.org/u/pakerfeldt)\
**Post date:** [29 July 2019 20:55 UTC](https://discourse.nodered.org/t/static-content-requires-auth-with-httpnodeauth/13809/1 "2019-07-29T20:55:29Z")

</div>

I have:

- Moved UI to a separate root
- Configured a custom static folder with `httpStatic`

Now, if I add `httpNodeAuth` for authentication when accessing the Dashboard, it also requires authentication for accessing static content (i.e. [example.org/static.png](http://example.org/static.png)). Removing `httpNodeAuth` and I can again access static content without authenticating. Is this a bug or am I doing something wrong? I have tripple checked that `httpStaticAuth`. Also, as a side note, setting `httpStaticAuth` only also requires authentication on static content, just as expected.
