So I have my UI on a server and rasa on another server,
If I do curl from the UI server for get request it works fine,
But the post request gives me method can not be called, and on the UI console I see there’s cors error.
I have enabled cors in rasa run models command.
What else could I be missing
Rasa server might have CORS enabled which it replies in the response header but maybe your UI server isnt forwarding it to the browser, you might have to enable CORS in the UI server as well which is serviing your front end.
Can your share your Ajax request.
If the error is method not allowed, it is likely something else and not Cors per day. Do you get like a 405 error and which endpoint are you calling?
can you try to make the request in POSTMAN. Does it work.
if so,
If it is a CORS error maybe you can modify your ajax request and try another library like jquery
it might also be possible that ajax is not handling the response headers. could be use if you can open up dev tools in chrome and show the error in the console and also the network logs
@souvikg10 Yes, it’s the preflight,
I executed the given command and still got the same issue.
I’ve been trying to eliminate this preflight request, but no luck in that either