$.ajax({ type: ‘post’, url: ‘http://localhost:5005/webhooks/rest/webhook’, dataType:‘json’, data: { ‘message’: msg, }, headers:{ ‘Access-Control-Allow-Origin’: ‘*’, ‘Content-Type’:‘application/json’, }, async: false, }).done((response) => { return response.responseJSON; }).fail((response) => { return response.responseJSON; });
I guess in command you mention the core
it should be cors
Command for docker file (ref only):
CMD [ "run","-m","/app/models","--enable-api","--cors","*","--debug" ,"--endpoints", "endpoints.yml", "--log-file", "out.log", "--debug"]
OR
command:
- run
- -m
- models
- --enable-api
- --cors
- "*"
- --debug
Or is that I’m missing anything?
Can I ask why you using rasa core and Rasa NLU images, just for curiosity. Thanks.