# Getting error after uploading the Hello world extension

**URL:** <https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926>\
**Category:** Extensions\
**Created:** [February 7, 2019, 7:57am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926 "2019-02-07T07:57:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 7, 2019, 7:57am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/1 "2019-02-07T07:57:22Z")

</div>

Hello,  
I’m a beginner in Twitch extension development, I have just downloaded the Hello World extension and uploaded the .zip file by creating a new extension in my twitch developer account. Now the panel is coming on my channel but getting this error **“Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).”** in the console and js functionalities are not working. I have tried a lot but unable to find out the reason. Can anyone please help me out of this problem?

 ![panel_error](https://d2spem0quai2ol.cloudfront.net/original/2X/8/8be2f79889388e9ba84f8e17f0212ce573bb09dd.png)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 7, 2019, 9:56am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/2 "2019-02-07T09:56:57Z")

</div>

This looks like the older hello world.

Extensions in hosted test cannot use jQuery (and other libraries from a CDN).

Try the hello world obtained via the Native rig which is more up to date.

> [@A New Direction for the Twitch Developer Rig](https://staging-discuss.dev.twitch.com/t/a-new-direction-for-the-twitch-developer-rig/19565):
>
> Today (January 17, 2019), we’re announcing the steps we’re taking to improve the way we build and deliver the Developer Rig. Our mission is to help developers build the best Extensions possible, and we believe we can better serve our customers by taking development fully in-house and moving the Developer Rig to a closed source model. The immediate outcome of this strategic decision is the [native Developer Rig](https://staging-discuss.dev.twitch.com/t/announcing-the-native-developer-rig-beta/19126), which is currently in beta. The native Rig combines a number of technical, UI, and usa…

Where did you obtain this hello world from so we can go fix it?

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 7, 2019, 10:35am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/3 "2019-02-07T10:35:59Z")

</div>

Thank you. My problem is solved. It’s now working. But I have a query here, can I open a new window having a 3rd party web url, by clicking a button within the Twitch extension using js?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 7, 2019, 10:37am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/4 "2019-02-07T10:37:01Z")

</div>

Yes. But there are rules

Section 4

> **[Extensions Guidelines & Policies](https://dev.twitch.tv/docs/extensions/guidelines-and-policies/)**
>
> Extensions Guidelines and Policies

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 7, 2019, 10:41am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/5 "2019-02-07T10:41:09Z")

</div>

Ok. But I’m getting an error can you please check the screenshot and help me to understand this error. here is the screenshot.

 ![error_checkout](https://d2spem0quai2ol.cloudfront.net/original/2X/f/f397c38d906cb180e9190b96c556f1eb8fc24b5d.png)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 7, 2019, 10:42am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/6 "2019-02-07T10:42:18Z")

</div>

You are building a shopping cart?

Thats in violation of 4.5 and 5.3

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 7, 2019, 10:53am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/7 "2019-02-07T10:53:55Z")

</div>

But I have got a similar here [https://www.twitch.tv/fuzzface49](https://www.twitch.tv/fuzzface49)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 7, 2019, 10:57am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/8 "2019-02-07T10:57:32Z")

</div>

_shrugs_

I can see that extension is fully functional, and pops open a popup window.

> [@Somnath\_Ghosh](#):
>
> But I have got a similar here [Twitch](https://www.twitch.tv/fuzzface49)

Seems weird you already have a working extension but now having problems with hello world…

The errors in your screenshot have nothing to do with Twitch Extensions they indicate issues with the cart JS Library

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 7, 2019, 11:02am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/9 "2019-02-07T11:02:19Z")

</div>

No that extension is just a reference and I’m just trying to make an extension like that.  
Ok if it has nothing to do with Twitch extensions, I will check the cart js.  
Thank you @BarryCarlyon.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 7, 2019, 11:11am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/10 "2019-02-07T11:11:18Z")

</div>

> [@Somnath\_Ghosh](#):
>
> No that extension is just a reference and I’m just trying to make an extension like that.

I imagine Faze have a special dispensation. As shopping carts are against the rules as per section 5

> 5.3 Extensions may not transact or encourage the transacting of monetary exchange in relation to any non-Twitch/Amazon commerce instruments.

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 7, 2019, 12:31pm UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/11 "2019-02-07T12:31:43Z")

</div>

Ok, then what should I do to get special dispensation ? can you please tell me.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 7, 2019, 12:32pm UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/12 "2019-02-07T12:32:32Z")

</div>

I don’t know. As I don’t have it myself

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 21, 2019, 10:12am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/13 "2019-02-21T10:12:48Z")

</div>

Can you guide me for connecting my external database with my twitch extension ? I want to use php for the extension backend service what are the steps I should follow?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 21, 2019, 10:14am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/14 "2019-02-21T10:14:36Z")

</div>

A twitch extension cannot natively access a database, your extension would have to make a ajax call to your EBS and the EBS performs the DB looking up returning that data.

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 21, 2019, 10:25am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/15 "2019-02-21T10:25:24Z")

</div>

ok, but how to connect a 3rd party EBS inside my twitch extension, what are the steps for that? Can you please guide?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 21, 2019, 10:27am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/16 "2019-02-21T10:27:55Z")

</div>

> [@BarryCarlyon](#):
>
> your extension would have to make a ajax call to your EBS

I answered that already

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 21, 2019, 10:35am UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/17 "2019-02-21T10:35:48Z")

</div>

Ok, thank you.

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 21, 2019, 12:06pm UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/18 "2019-02-21T12:06:01Z")

</div>

I’m getting error while calling ajax to a 3rd party url in my js “Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource”. What is the reason for that?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 21, 2019, 12:20pm UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/19 "2019-02-21T12:20:18Z")

</div>

You didn’t set CORS headers on your EBS to permitted CORS to operate

---

<div class="post-metadata">

**Author:** ![Somnath\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Somnath\_Ghosh](https://staging-discuss.dev.twitch.com/u/Somnath_Ghosh)\
**Post date:** [February 21, 2019, 1:36pm UTC](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926/20 "2019-02-21T13:36:35Z")

</div>

I have tried to set using the code below  
headers: {  
‘Content-Type’: ‘application/json’,  
‘Access-Control-Allow-Origin’: ’ \* ',  
‘Access-Control-Request-Headers’: ’ \* ',  
‘Access-Control-Allow-Methods’:‘GET’

```
    },

```

But it’s not working. Can you please help?

[Next page](https://staging-discuss.dev.twitch.com/t/getting-error-after-uploading-the-hello-world-extension/19926.md?page=2)
