Unity Play WebGL build suddently can't fetch leaderboard because of Content Security Policy and works fine locally

I implemented a leaderboard in my game using Unity Game Services and it was working perfectly last night in unity play. I was able to save scores and see the leaderboard, rename my player’s name, etc. BUT today without me having changed anything in the code a friend reported that leaderboards weren’t working anymore and I checked myself and I saw the logs and found this error message:

[LeaderboardManager] Reason: ServiceUnavailable, Message: Unknown Error

which comes from a LeaderboardsException in the GetScoresAsync:

        try
        {
            var result = await LeaderboardsService.Instance.GetScoresAsync(leaderboardId, new GetScoresOptions { Limit = 10 });
            return result.Results;
        }
        catch (LeaderboardsException leaderboardEx)
        {
            Debug.LogError($"[LeaderboardManager] Reason: {leaderboardEx.Reason}, Message: {leaderboardEx.Message}");
            throw;
        }

I tried uploading the exact same build to itch.io: Graveyard Groundskeeper by siflou and the leaderboard works perfectly to There has to be something wrong with how my build is configured with Unity Play or something because I’m able to pull that same production leaderboard locally without problem and I’m seeing all the scores but somehow on Unity Play today it’s not working. I’m seeing some error logs CSP messages in the F12 debug console just before it gets to my exception logs, for example:

Fetch API cannot load https://leaderboards.services.api.unity.com/v1/projects/642015b7-6ccc-4d45-b03c-cccf92a287df/leaderboards/GraveyardGroundskeeper/scores/players/DJLExNpBSDbm8XPVoN4UaWNnJYnr. Refused to connect because it violates the document’s Content Security Policy

Can someone help?

Here’s the link to my game if you want to try to reproduce it.

Thank you!

I’m having the same issue on three games hosted on Unity Play. Online scores/leaderboards no longer update or display. I asked an AI to analyze the console/network logs: the root cause appears to be Unity Play’s Content-Security-Policy blocking requests to https:// social .services.api.unity.com (leaderboards/scores). Authentication endpoints like player-auth.services.api.unity.com still work, and the game loads normally (loader/framework/data are OK), but leaderboard calls are blocked by CSP, which also triggers secondary auth errors (e.g., ‘Invalid state… already signing in’ due to retries). This looks like a Unity Play infrastructure/CSP change rather than an issue in the game code. Temporary workaround would be hosting elsewhere (itch.io/GitHub Pages), but I don’t have access to my computer right now to re-host. Could you please confirm and fix the CSP to allow the required domain for leaderboards?

Thank you! Did you run into the same issue? I thought maybe something with my code was causing the CSP issue and that there’s a workaround but maybe not. I thought of implementing a totally different leaderboard system until this unity’s is down because I really love unity play, it’s so convenient to upload new builds to.

Appreciate your response, let’s hope Unity fixes this soon! I reported a bug from the unity editor and talked about it in the Unity discord but I don’t know that it got to anyone, I wonder what’s the best way to make sure that unity is aware of it?