But I get this error message.
Access to fetch at 'https://remote-url.com/events' from origin 'https://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
But it seems like the request is sent with 'withCredentials' set to true.
I'm using this code below.
...
eventStore: new EventStore({
headers: {
'Content-Type': 'application/json',
'Authorization': `bearer ${this.token}`
},
readUrl: 'https://remote-url.com/events',
autoLoad : true,
}),
...
Anyone who have experience with this type of setup?