wix-http-functions cors problem

import { ok, badRequest } from ‘wix-http-functions’;

export async function post_login(request) {
const response = {
“headers”: {
“Access-Control-Allow-Origin”: “*”, // Replace with your frontend domain
“Access-Control-Allow-Methods”: “POST, GET, OPTIONS”,
“Access-Control-Max-Age”: “86400”
}
};
etc