# Getting a CORS error when embedding the my private space

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgetting-a-cors-error-when-embedding-the-my-private-space%2F142466%3E%5C
**Category:** Spaces\
**Created:** [February 23, 2025, 9:46am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgetting-a-cors-error-when-embedding-the-my-private-space%2F142466 "2025-02-23T09:46:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zfdm](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zfdm](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fzfdm)%5C
**Post date:** [February 23, 2025, 9:46am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgetting-a-cors-error-when-embedding-the-my-private-space%2F142466%2F1 "2025-02-23T09:46:14Z")

</div>

I wanted to follow the instructions how to embed a chatbot in my website from:

> **[Creating A Website Widget From A Gradio Chatbot](https://www.gradio.app/guides/creating-a-website-widget-from-a-gradio-chatbot)**
>
> A Step-by-Step Gradio Tutorial

it works when the space is public.  
But if the space is private, I am getting CORS error.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [February 23, 2025, 1:11pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgetting-a-cors-error-when-embedding-the-my-private-space%2F142466%2F2 "2025-02-23T13:11:07Z")

</div>

> [@Embedding a private space on my website](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fembedding-a-private-space-on-my-website%2F39608)%3A
>
> Is there any work around for this, using token or something? It would be great. Thank You

I think it is not possible to embed Private Space web pages in principle. The information is a little out of date, so I don’t know if it is still not possible…  
If you need to do it, please contact HF.  
[website@huggingface.co](mailto:website@huggingface.co)

---

<div class="post-metadata">

**Author:** ![meganariley](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/meganariley/32/56966_2.png) [@meganariley](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmeganariley)%5C
**Post date:** [February 24, 2025, 5:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgetting-a-cors-error-when-embedding-the-my-private-space%2F142466%2F3 "2025-02-24T17:14:09Z")

</div>

Hi @zfdm To embed a Space, you must set the visibility to ‘public’. More info here: [Embed your Space in another website](https://huggingface.co/docs/hub/en/spaces-embed).
