console.log不会打印任何内容到控制台firebase功能

时间:2019-05-08 09:55:27

标签: firebase https google-cloud-functions

我在firebase函数中实现https触发器。我插入了concole.log('indication');行,但未在开发工具控制台中显示。我收到此警告消息:

  

跨域读取阻止(CORB)阻止了MIME类型为text / html的跨域响应https://appengine.google.com/_ah/loginform?state=~AJKiYcEAFm3jceAocTvFuaOyz038NrMAMxMlQiyLhWHyCu9VhvZMbSYmBl3DQenUkEEbj9QipF8K2A9wuSMESW_FFeZmLIxOxpH07SmYGwvcdsa8Ew7Ong50-5XHPCKRGhh4YUHqchyhOEMURFBN2XH3tznznKKLJgvx-Cu6v5t7dmeDz6AnZlpPddd89dB6fds7Ss9o5-Gn6HOTHT_aUYqyqNuFfCVYwcYTlUq3oJmW6_5V7BSGdCwdY3M1wj6GGJKAaE2Bl7wlOidBhP9pLf0brUpO6gj-tcn85tlaP45Y7ngyJZkcKMvyM5BZ_7TrHtL1Ath3ng7D2rLjfa7GXwrJTsyCFRqilgabEDHg65I4D-k0P3dkar6Z3R8cGyBaG9EuTIM2K8S6。有关更多详细信息,请参见https://www.chromestatus.com/feature/5629709824032768

我尝试使用cros或在函数中写这些行:

  

response.set('Access-Control-Allow-Origin',“ *”);

     

response.set('Access-Control-Allow-Methods','GET,POST');

它仍然没有打印到浏览器的日志中。

任何帮助将不胜感激

0 个答案:

没有答案