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,438
  • 68
  • 55
  • 126
aofdev
  • 1,724
  • 1
  • 13
  • 28

0 Answers0