Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
I am trying to use the add user api but it fails with the following error in the console.
Access to XMLHttpRequest at ‘https://_miab_host.com_/admin/mail/users/add’ from origin 'https://_my_website.com_’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
The website from where the add request is originating has a different IP and the system where MIAB is hosted has a different IP.
Where would I put the header "Access-Control-Allow-Origin". I am fairly acquainted to Linux and am not sure which file would include this setting.
Thanks!
I am trying to use the add user api but it fails with the following error in the console.
Access to XMLHttpRequest at ‘https://_miab_host.com_/admin/mail/users/add’ from origin 'https://_my_website.com_’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
The website from where the add request is originating has a different IP and the system where MIAB is hosted has a different IP.
Where would I put the header "Access-Control-Allow-Origin". I am fairly acquainted to Linux and am not sure which file would include this setting. Thanks!