Use gitlab like github in PG


I know Babylon.js uses github, but I would like to use gitlab. I has a raw file link like github, but I tried to import this model into a pg like you would a github one but it didn’t work. Any ideas? or should I stick to github and upload when I can. (I can’t access github on my chromebook)

link to file. It only has a couple of meshes.


Aren’t there errors in the console, like cross-origin problems?

Or what http code is returned? I get 302, and it asks me to log in to view the file:

If that happens but you are logged in, maybe cross-origin credentials need to be enabled for XMLHttpRequest somewhere?:

Your file is not accessible from the outside. Is your project a private one? In this case Gitlab makes it not possible for your repository or files to be visible. This is also the right behaviour otherwise your project wouldn’t be safe. You might want to convert your project into a public or protected one though this means it will be visible everywhere and everyone would be able to clone it.

I get a “page not found” when following your link :slight_smile: .

@Null and @Gijs thanks for the responses. for me the link is available, but that’s only because It’s repository

If you notice the random parenthesis at the end of the link it is there to prevent the link pop up. It looks like it’ll take you to the sign in but took me to a gitlab forums issue like this one. Weird. I’ll remove the little parenthesis.

Oh. I never noticed this. 25%20AM

I made it public, and edited the settings so on project members can add and edit files (default is everyone can)

Made a pg, but still no luck :confused:

I’m getting a 404 not found when I try the link now, but that’s when I’m not logged in since I don’t have an account. Is that expected?

I’m honestly not sure. So you could see the file when you’re logged in? I guess that’s half-right. I guess it’s a gitlab issue and not a bjs one.

I just signed out and I too get a 404.

1 Like

I actually meant that I didn’t see it, and I don’t have an account at all.

Oh. I guess a 404 would be all you would get then :wink:

1 Like

404 here too, so your asset is not public. I suppose that’s why playground can’t read it.

That’s odd though. It’s public.


But what I have done is made it like a website, so will bring up a page. is the model file. So with that, IT WORKS!

Yep it’s ok now, I will add info on this doc page Using External Assets - Babylon.js Documentation

1 Like

Oh cool! I can’t access github, and I think that would help a lot of people.

Weird, what can of security rule would block a website like Github? That said, I recently got a spam redirecting to a website, redirecting itself to a scam website (but that’s not Github which is involved in the security issue here so…).

1 Like

The reason github is blocked is because some kids were playing a game called shell shockers. The school blocked it with securly (the same thing blocking github). Now the day that happened everyone was kinda mad because they had a master google doc with game codes so a lot of kids in different classes were playing together. The day of the block I and other kids made an iframe of on github. It worked and the link was put on the doc. The IT found out so github was blocked and I and the other kids who made iframes were asked to take them down. I took my main one down, but it lives on at I have it iframed on an unmarked page. I have since moved my iframe site to I haven’t updated it in a while. Also IT blocked some of the pages down to the internet level. securly can be bypassed. internet blocks can’t. That’s also why I made this: (scanttt stands for Securly CANT Touch This)

Ahah :smiley: It reminds me of when I was in university, I had always a copy of Quake3 on my usb key as the game works by copy-paste (but deleting issues was made by… a - trolling not gamer - friend, not the IT which probably never known about Q3).

1 Like

If you want some nostalgia, isn;t blocked here because only I know about it. I like to listen to spotify and bhop around to kill time during lunch. :laughing:

1 Like