I am using genie backend and react frontend in development of my application, however, whenever I try to post data to the backend from my react app I get error
Access to XMLHttpRequest at 'http://127.0.0.1:8000/simplex' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains the invalid value ''.
xhr.js:155 POST http://127.0.0.1:8000/simplex net::ERR_FAILED
but posting data using the julia Http post it works as expected, I know this is an issue with cors headers in my server but am only two days into Genie and I can find a way to do it, i tried adding my config but never helped anyway
const config = Settings(
server_port = 8000,
server_host = "0.0.0.0",
log_level = Logging.Debug,
log_to_file = false,
server_handle_static_files = true,
websocket_server = false,
cors_allowed_origins = ["*"] #tried adding this
)