0

Error code:

XMLHttpRequest cannot load https://fcm.googleapis.com/fcm/send. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' is therefore not allowed access

Code:

enter image description here

How to set header?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
aofdev
  • 1,772
  • 1
  • 15
  • 29

0 Answers0