不确定为何无法打开流:HTTP请求失败! Youtube API中禁止HTTP / 1.0 403
如果我尝试使用公共API - 它可以正常工作
但是如果我使用服务器ip和referer域。显示错误
Warning: file_get_contents(https://www.googleapis.com/youtube/v3/search?part=snippet&order=viewCount&maxResults=5&q=Sydney&key={mykey}): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in filepath.php on line 8
任何人都可以帮助我,我该如何解决这个问题