When published on Web, works only in Safari

Database & APIs

Hello!

I have published my web App on my Custom Domain. The problem I have is that I can login to the web App fine in Sarari, but only in Safari. When I try to login on other web browsers, the following error message appears (in Chrome and other web browsers):

Access to XMLHttpRequest at (my Backend) from origin (my Frontend) has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response.

I understand that this is a CORS issue, and have tried to solve the problem according to CORS. My backend and frontend have different origins. But I still can´t get it work on any other browsers than Safari.

Have any of you had the same problem?

What have you tried so far?

I´ve tried to add this to my backends index.php:

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers:  Content-Type, X-Auth-Token, Authorization, Origin');
header('Access-Control-Allow-Methods:  POST, PUT, GET');

I have also installed "Allow CORS plugins" on web browsers, but those won´t help either.

Did you check FlutterFlow's Documentation for this topic?
No