doujing6436 2014-04-29 14:05
浏览 12

Youtube API服务器端键不在子域上工作

I have a site that uses the Youtube API and we use a server API key which uses IP's as the allowed locations to get the information.

When used locally things work fine. I have a simple server running on my computer and getting the ip from http://who.is/ allows me to get the video information.

However when the application is set up on a url that is a subdomain say dev.site.com for development purposes, I am not getting any information.

If I who.id the subdomain the IP constantly changes. If I dig the server I get a stable IP but this does not seem to solve the issue.

Has anyone else encountered a situation like this? Is there a step I am missing?

  • 写回答

1条回答 默认 最新

  • dsfasdfsda234234 2014-05-02 16:38
    关注

    I actually solved this myself. After trying many different IPs for the server, I just removed all the IP's associated to the server key.

    And that seemed to fix it, I am still unsure why adding the IP for the server did not work. Which is quite frustrating.

    评论

报告相同问题?

悬赏问题

  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计