python - 使用嵌入轨道时的 Spotify 错误请求
问题描述
我正在使用烧瓶来构建我的网络应用程序。当它尝试加载<iframe>
错误时出现。在控制台中,您可以看到以下错误:Failed to load resource: the server responded with a status of 400 ()
. 我的请求 URL 看起来像这样:https://open.spotify.com/embed/track/2XU0oxnq2qxCpomAAuJY8K
并且从我的后端解析到我的前端。我的前端看起来像这样:
<iframe src={{url}}" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
令人困惑的是,当我手动将 url 粘贴到它时,<iframe>
它工作正常。
解决方案
推荐阅读
- reactjs - 我是编程新手,我试图安装反应
- flutter - 如何存根不属于某个类的函数
- python-3.x - 每次我运行 exe 都会创建新文件?
- java - 有没有办法处理 org.springframework.dao.DataIntegrityViolationException 在 Spring Boot 的 CrudRepository 的 saveAll 中的唯一约束?
- c - 使用“make all”会导致通用 ELF 中的重定位(EM:62)
- javascript - 如何使用javascript正则表达式查找包含后缀为“xyz”的数字的字符串?
- events - 什么是 Solidity 事件
- actions-on-google - Google 操作无法读取错误响应并顺利结束会话
- r - 允许用户单击并在视觉上移动绘图线的闪亮小部件,将这些更改反馈回修改后绘图的数字参数?
- karma-jasmine - 如何根据运行所需的时间使单元测试失败或通过?