I have successfully deployed a Rasa server on an AWS Ubuntu server, and it works great in the terminal, but I can't access from a POST via fetch().
I run this command:
rasa run --enable-api --cors *.*
and it responds:
Starting Rasa server on http://localhost:5005
Rasa Sever is up and running.
It responds in the browser (i.e. xxx.xxx.xxx:5005) with "Hello from Rasa: 2.8.3", so it's connected, but when I try to POST to if via fetch() it gives me a CORS error:
const url = 'http://xxx.xxx.xxx.xxx:5005/model/parse';
fetch(url, { method: 'POST',
body: "{text:'Hello'}"})
.then(res => { console.log(res); res.json()})
.then(res => console.log(res))