Skip to content

Can jsonp be optional? #1594

@zonak

Description

@zonak

I have an endpoint defined with the jsonp: 'callback' config option.
Making a jsonp request works fine. But if I make a regular GET request, I see the following error:

uncaughtException: Cannot call method 'match' of undefined

originating from hapi/lib/request.js.
Is it possible to have an endpoint serve both jsonp and regular requests?

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions