angular - Angular 2 问题的 CORS firebase 存储问题
问题描述
预期:访问 Firebase 存储桶时,在控制台日志中接收数据且没有错误。
会发生什么:类型的控制台日志中的错误Access to fetch from origin 'http://localhost:4004' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
解决方案
推荐阅读
- c# - LINQ 语法:如何有相同的目的?
- python-3.x - 使用python从html文件中的多个表中获取特定表
- emeditor - 使用 Emeditor 将 unicode 字符转换为可读格式?
- function - How can I use Perl's format function?
- c# - 如何为 AzureServiceBus 主题配置 RequiresDuplicateDetection
- android - 在代理连接下未找到适用于 Android 的信任锚
- php - Codeigniter 3,绑定参数是否可以保护我免受 SQL 注入?
- php - PHP - 将输入文件的值从一页转移到另一页
- css - CSS Grid 仅设置顶行的列数
- java - 在重复的 EHCache 上升级 Shiro 到 1.6.0 失败