Cant save NGE snippet?

I have no textures in my nodes but I’m getting this error? I was able to save the json so its not a problem but still wondering why it was saying this?

This error means the HTTP status was not “200” when saving the snippet. The error message pointing to texture size is only a hint in case it could be the problem, but 50KB can’t be.

Maybe it was a transient error: do you still experience the same problem?

Ill check now.
Nope its still happening.
planetBall.zip (2.6 KB)
Here is the json.

The real error is (look at the console log of the browser):

Access to XMLHttpRequest at 'https://snippet.babylonjs.com/' from origin 'https://nge.babylonjs.com' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.

cc @sebavan / @Deltakosh, it seems we need to set some specific headers on the server side.

Oh right!
let me check with @RaananW !

Fixed! thanks to @RaananW

2 Likes