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
superagent throws the following error: XMLHttpRequest cannot load https://deliver.apostle.io/. Request header field Apostle-Client is not allowed by Access-Control-Allow-Headers.
Superagent Superagent requires all CORS request to adhere to the following: The .withCredentials() method enables the ability to send cookies from the origin, however only when "Access-Control-Allow-Origin" is not a wildcard ("*"),
Reference - superagent
The network request initiated by Apostle.io and executed by superagent returns the following header (amongst others) from https://delivery.apostle.io: Access-Control-Allow-Origin:*
Is this a known issue?
is the Apostle.io library therefore not CORS compatible?
The text was updated successfully, but these errors were encountered:
Cors is supported, but it looks like an extra header that was added in to identify requests is preventing it from working as expected. We'll get the Apostle-Client header added to Access-Control-Allow-Headers and comment here when complete.
Is
CORS
actually supported by this repo ?, because myCORS
requests straight from the browser are not being honoured.Use Case
I'm using the
apostle.js
repo together withsuperagent
to deliver email. This is aCORS
request directly from the browser.Code
superagent
throws the following error:XMLHttpRequest cannot load https://deliver.apostle.io/. Request header field Apostle-Client is not allowed by Access-Control-Allow-Headers.
Superagent
Superagent
requires allCORS
request to adhere to the following:The .withCredentials() method enables the ability to send cookies from the origin, however only when "Access-Control-Allow-Origin" is not a wildcard ("*"),
Reference - superagent
The network request initiated by
Apostle.io
and executed bysuperagent
returns the following header (amongst others) fromhttps://delivery.apostle.io
:Access-Control-Allow-Origin:*
Is this a known issue?
is the Apostle.io library therefore not CORS compatible?
The text was updated successfully, but these errors were encountered: