pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

Extensions don't work when I publish in Azure WebApp

Open humberto-jezus opened this issue 1 year ago • 2 comments

Describe the bug

Hello friends, I am facing difficulties with the extensions in the makecode editor. I downloaded the pxt project from github and all the dependencies to my computer. When running the project on localhost, everything works normally; however, when publishing on a cloud host, the application becomes unable to call the extensions in the makecode editor (see image). First image local host , with the extensions working and second image with the custom url cloudhost not working. Can someone help me? Thanks

First Image - LocalHost image

Second Image - Cloudhost - Custom URL image (1)

https://xbytex.azurewebsites.net/#editor

Image with the call errors

Captura de tela 2024-04-18 083325

my question is : There is a file that I need update to enable my custom url call the extensions apis? I tried to find but , I dont have sucess with this

Thank you

humberto-jezus avatar Apr 18 '24 11:04 humberto-jezus

Did you find the solution? Facing same issue.

StanislavJochman avatar May 04 '24 18:05 StanislavJochman

Did you find the solution? Facing same issue.

No @StanislavJochman I opened a ticket support for microbit but anybody can't helped me , they only indicate other similar issues here in github my new approach is trying to fill the extension directly in the editor bar like this image:

image

This way maybe will working and not needed to search for a external api , because I'm almost sure that we have a "cors" rules blocking my custom url

image

If I get success , I will return to help as well Thank you

humberto-jezus avatar May 15 '24 17:05 humberto-jezus

This is your own website. You will have to build a backend which supports importing extensions from github. Extensions are built on github and needs to be ingested to your backend. This is nothing to do with makecode site.

abchatra avatar Jul 23 '24 17:07 abchatra