Access-Control-Allow-Origin issue when calling extern api

Viewed 25

I'm working on a local react Typescript project and I have an cors issue when i try to request a public API

const getToken = (paramValue:any) => {
fetch('https://connect.deezer.com/oauth/access_token.php?app_id=xxxx&secret=xxxxxx&code='+paramValue,{
  headers:{
    "Access-Control-Allow-Origin":"*"
  }
})

enter image description here

0 Answers
Related