Availability:
:- use_module(library(http/http_cors)).
OPTIONS
request. Request
is the HTTP request. Options provides:
- methods(+List)
- List of supported HTTP methods. The default is
GET
, only allowing for read requests. - headers(+List)
- List of headers the client asks for and we allow. The default is to simply echo what has been requested for.
Both methods and headers may use Prolog friendly syntax, e.g.,
get
for a method and content_type
for a
header.