I'm getting CORS error when trying to register the current browser with Airship using bellow code:
UA.then((sdk) => {
sdk.register(); // Returns Channel object
});
It says that:
"snippet.html:1 Access to fetch at 'https://aswpapius.com/api/web-channels' from origin 'http://localhost:5502' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."
"POST https://aswpapius.com/api/web-channels net::ERR_FAILED"
Error screen shoot:
Comments
1 comment