Fixed paging, added a simple header to support Cross-Origin resource sharing