Discuss Scratch

ten_6044
Scratcher
100+ posts

How to avoid CORS from blocking project saving?

My browser / operating system: Windows NT 10.0, Chrome 132.0.0.0, No Flash versions detected

Sometimes, when I save a project, no matter how small the project is, they fail to save occasionally. I found out that, when I open the developer console, it states that “request to … has been blocked by the CORS policy: …”. I know saving again works, but I want to avoid this error so that project saving is effortless.

How to avoid that CORS error from happening?

Ref: https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/805542/
Catzcute4
Scratcher
500+ posts

How to avoid CORS from blocking project saving?

probably should be moved to bugs and glitches but i’m not a mod
CST1229
Scratcher
1000+ posts

How to avoid CORS from blocking project saving?

I think this usually isn't an actual CORS issue and just the servers being down/unstable?

Last edited by CST1229 (Feb. 18, 2025 05:22:11)

themirrazz
Scratcher
87 posts

How to avoid CORS from blocking project saving?

Try disabling browser extensions, as some might accidentally break CORS requests. If it keeps happening after that, use “Contact Us” to contact the ST or report it to the “Bugs & Glitches” forum.
imfh
Scratcher
1000+ posts

How to avoid CORS from blocking project saving?

CST1229 wrote:

I think this usually isn't an actual CORS issue and just the servers being down/unstable?
Hmm, yeah that sounds likely. If the server is down, then it won't be able to respond to the browser when the browser asks the server if the request is allowed by CORS.

Last edited by imfh (Feb. 21, 2025 01:33:26)

ten_6044
Scratcher
100+ posts

How to avoid CORS from blocking project saving?

I don't think it's because of the server being down. Recently CORS blocks my project saving again . Here's the error:

Access to XMLHttpRequest at 'https://mv-ezproxy-com.ezproxyberklee.flo.org/(project id)' from origin 'https://scratch-mit-edu.ezproxyberklee.flo.org' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Can someone inspect and solve it?
han614698
Scratcher
1000+ posts

How to avoid CORS from blocking project saving?

ten_6044 wrote:

(#6)
I don't think it's because of the server being down. Recently CORS blocks my project saving again . Here's the error:

Access to XMLHttpRequest at 'https://mv-ezproxy-com.ezproxyberklee.flo.org/(project id)' from origin 'https://scratch-mit-edu.ezproxyberklee.flo.org' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Can someone inspect and solve it?
It's not actually CORS causing the problem. Just a side-effect result.
ten_6044
Scratcher
100+ posts

How to avoid CORS from blocking project saving?

han614698 wrote:

(#7)

ten_6044 wrote:

(#6)
I don't think it's because of the server being down. Recently CORS blocks my project saving again . Here's the error:

Access to XMLHttpRequest at 'https://mv-ezproxy-com.ezproxyberklee.flo.org/(project id)' from origin 'https://scratch-mit-edu.ezproxyberklee.flo.org' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Can someone inspect and solve it?
It's not actually CORS causing the problem. Just a side-effect result.
So what actually happened?

Powered by DjangoBB