How to overcome CORS redirect issue while performing post operation via ajax?
问题 I'm able to get signed in to the roundcube instance (hosted at another server) via form submission with post method type from external login form. I'm getting this error (While signing via ajax): XMLHttpRequest cannot load https://192.168.0.7/mail/. The request was redirected to 'https://192.168.0.7/mail/?_task=mail&_token=36e97d50951472c4c65de562a0109e94', which is disallowed for cross-origin requests that require preflight. $.ajax({ type: 'POST', url: 'https://192.168.0.7/mail/', data: {