# How do I register a public asset in a plugin?

**URL:** <https://meta.discourse.org/t/how-do-i-register-a-public-asset-in-a-plugin/68660>\
**Category:** Development\
**Created:** [2017 年 8 月 23 日午後 10:40 UTC](https://meta.discourse.org/t/how-do-i-register-a-public-asset-in-a-plugin/68660 "2017-08-23T22:40:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
**Post date:** [2017 年 8 月 23 日午後 10:40 UTC](https://meta.discourse.org/t/how-do-i-register-a-public-asset-in-a-plugin/68660/1 "2017-08-23T22:40:13Z")

</div>

Forgive me if this has been asked before, but I am unable to find a previous topic on this.

I’m wondering how to register an asset as public (such as an image) through a discourse plugin - it seems currently after registering, I get a 404 or 302 response when installing under a private member’s only site.

This is in reference to the [Discord oauth plugin](https://meta.discourse.org/t/discord-oauth2-plugin/67174) I built - I am unable to retrieve the image either directly, or through a `register_asset` call.

How would I go about serving static plugin assets in this case?

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-register-a-public-asset-in-a-plugin/68660)._
