i am using this code in React app, it supposed to fire a notification to react native expo app. instead, i am getting this error in the browser's console.
i tried adding Access-Control-Allow-Origin, Access-Control-Allow-Methods...etc
let response = fetch('https://exp.host/--/api/v2/push/send', {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
to: token,
sound: 'default',
title: 'Demo',
body: 'Demo notificaiton'
})
});