I can't add allowedOrigins to request

Hello,

While uploading via URL for Stream, I get an error when I define allowedOrigins.
If I don’t add allowedOrigins it works fine.

Anyone have a suggestion?

Code :

 $client = new Client();

        $accountID = config('app.cloudflare_images.account_id');
        $apiToken = config('app.cloudflare_images.api_token');


        $data = [
            'url' => $file,
            'meta' => [
                'name' => 'My Video',
            ],
            // When I add this line, I get a 400 error { "code": 10005, "message": "Bad Request: The requ... }
            'allowedOrigins' => [
                'https://example.com',
                'https://www.example.com',
                'https://demo.example.com',
            ],
        ];

        $response = $client->request('POST', "https://api.cloudflare.com/client/v4/accounts/$accountID/stream/copy", [
            'headers' => [
                'Authorization' => "Bearer $apiToken",
                'Content-Type' => 'application/json',
            ],
            'json' => $data,
        ]);

        $responseBody = $response->getBody()->getContents();

        return json_decode($responseBody,true);