Skip to content

Hapi v17.0.2 cors origin #3688

@indreek

Description

@indreek
const server = Hapi.server({ port: 8080, routes: {cors: {origin: ['http://*.domain.com']} }});

What was the result you received?

(node:12710) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'match' of undefine

What did you expect?

Context

Cannot add cors origin with wildcard. * works, *.domain.com doesn't work.

Indrek

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