Add headers to the configuration of your HTTP server. For example, for HTTP Apache server, you
need to add the following
headers:
Header always set Access-Control-Allow-Origin "https://host name:port number"
Header always set Access-Control-Allow-Headers "Content-Type, Content-Encoding, X-Xsrf-Token, X-Audit-Datasearchpath, X-Audit-Type, X-Queryuserid, X-Model-Last-Modified, X-Audit-Searchpath, X-Qs-Querycontext-Id, X-Ca-Affinity, Etag, X-Ca-Transaction, X-Compressed-By, X-Qs-Request-Id"
Header always set Access-Control-Expose-Headers "X-Ca-Affinity "
Header always set Access-Control-Allow-Credentials "true"
Header always set Access-Control-Allow-Methods "POST, GET, PUT, DELETE, PATCH, OPTIONS"
Header onsuccess edit Set-Cookie (.*) "$1; SameSite=None; Secure"