how to set http header Access-Control-Allow-Origin

I need to have cross domain login process to mikrotik OSRouter.
I don’t want to use JSONP, because it is a GET method.

How can I setup the http header as:

Access-Control-Allow-Origin: http://DomainB.com

Thanks

From the manual:

$(if http-header == "Access-Control-Allow-Origin")http://DomainB.com$(endif)

(It’s a silly and completely counter intuitive syntax, but at least it’s something…)