You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
I have the same problem as @heycait on issue #370.
Im using the url https://api.sendgrid.com/api/mail.send.json with my custom AngularJS factory to send an email. This will work but i still get a CORS error. It will send the email accordingly.
This are the custom settings for the header in the AngularJS $http service:
With both of the example headers i get the following error message:
Response to preflight request doesn't pass access control check:
The 'Access-Control-Allow-Origin' header has a value 'https://sendgrid.com'
that is not equal to the supplied origin. Origin 'http://192.168.0.25:8031' is
therefore not allowed access.
The problem seems to be the 'Access-Control-Allow-Origin ' header on your domain need to be an wildcard instead of 'http://sendgrid.com'
Can this problem be fixed? Thanks for the help in advance.