firebase hosting 内のリソースを別のサイトで参照させようとしたらCORSエラーで怒られた…
firebaseのドキュメントに記載があったのでそれに従えば、OK。
https://firebase.google.com/docs/hosting/full-config?hl=ja#headers
firebase.json に以下を追加。
"headers": [ {
"source": "適宜",
"headers": [ {
"key": "Access-Control-Allow-Origin",
"value": "*"
} ]
} ]
さくらやロリポとかのレンサバでぼんやり過ごしてきた人間にはこういう一つ一つがつらいなあと。