Form / Feedback form not working if placed on another webserver

Infos:

  • Used Zammad version: 5.2
  • Used Zammad installation type: debian package
  • Operating system: Debian GNU/Linux 10 (buster)
  • Browser + version: MS Edge Version 102.0.1245.44, Firefox 91.10.0esr

Expected behavior:

Feedback form implemented on another server (with another hostname) should send and open a ticket.

Actual behavior:

Form submission fails with status code 429:
Access to XMLHttpRequest at ‘https://zammad.domain.com/api/v1/form_submit’ from origin ‘https://ANOTHER-Server’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Steps to reproduce the behavior:

Add form code on another server (with another hostname) and try to submit form.

Ensure to have the latest available Zammad version installed to cross out bugs.
Unless you’re fiddling with CORS headers on either side the form should work without any issues. I suspect the webserver where you’re trying to show the form at is the culprit.

Hard to tell with what we have on information here. Good luck.