I've tried to solve this problem for more than a week. I'm new to this meteor. I'm trying to learn by myself even because I do not know English very well.
but I'm trying to access an api that I get this eh encotrado that you should put a message like
Access-Control-Allow-Origin: *
but I do not know how and where
also try to put {mode: 'no-cors'}
fetch('http://sipla.cuci.udg.mx/sc/horariop.php?c=219359735&k=0d8ce4fab5f4df9ce711cae81e044e1a',{mode: 'no-cors'})
no work for me
componentDidMount() {
fetch('http://sipla.cuci.udg.mx/sc/horariop.php?c=219359735&k=0d8ce4fab5f4df9ce711cae81e044e1a')
.then((response) => {
return response.json()
})
.then((dat) => {
this.setState( {datos1: dat })
})
}