-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
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
- node version: 8.9.1
- hapi version: 17.0.2
- os: Ubuntu 16.02
- any other relevant information: https://hapijs.com/api#route.options.cors
Cannot add cors origin with wildcard. * works, *.domain.com doesn't work.
Indrek
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugBug or defectBug or defect