expressサーバで、CORSと証明書を有効にする

イシュー

  • ApiConnecerで、エラー
No response received. Causes include a lack of CORS support on the target server, the server being unavailable, or an untrusted certificate being encountered.
Clicking the link below will open the server in a new tab. If the browser displays a certificate issue, you may choose to accept it and return here to test again.
https://localhost:4002/api/Notes

応答は受信されませんでした。 原因には、対象サーバでのCORSサポートの欠如、サーバが利用できないこと、または信頼されていない証明書が遭遇していることが含まれます。 下のリンクをクリックすると、新しいタブでサーバーが開きます。 ブラウザに証明書の問題が表示された場合は、その証明書を受け入れてここに戻り、もう一度テストします。 https:// localhost:4002 / api / Notes

  • expressサーバで、CORSと証明書を有効にする

参考