:- use_module(library(http/http_cors)). [det]cors_enable(+Request, 
+Options)
[det]cors_enable(+Request, 
+Options)OPTIONS request. Request 
is the HTTP request. Options provides:
GET, 
only allowing for read requests.
Both methods and headers may use Prolog friendly syntax, e.g.,
get for a method and content_type for a 
header.