Problem with CORS

There’s an example in Battling with cors_enable

home_handler(Request) :-
  cors_enable(Request, [methods([get,post])]),