Skip to content

Add error messages to 404's caused by cors closes #2857#2859

Merged
hueniverse merged 2 commits intohapijs:masterfrom
AdriVanHoudt:cors-404-reasons
Oct 20, 2015
Merged

Add error messages to 404's caused by cors closes #2857#2859
hueniverse merged 2 commits intohapijs:masterfrom
AdriVanHoudt:cors-404-reasons

Conversation

@AdriVanHoudt
Copy link
Copy Markdown
Contributor

Closes #2857

@AdriVanHoudt
Copy link
Copy Markdown
Contributor Author

Btw any comments about the messages welcome, just put ones there that made sense to me.

lib/cors.js Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a classic not found. No need for a message.

@hueniverse hueniverse added the feature New functionality or improvement label Oct 19, 2015
@hueniverse hueniverse self-assigned this Oct 19, 2015
@AdriVanHoudt
Copy link
Copy Markdown
Contributor Author

Updated the messages

@hueniverse hueniverse added this to the 11.0.1 milestone Oct 20, 2015
hueniverse added a commit that referenced this pull request Oct 20, 2015
Add error messages to 404's caused by cors closes #2857
@hueniverse hueniverse merged commit 2018ff8 into hapijs:master Oct 20, 2015
@AdriVanHoudt AdriVanHoudt deleted the cors-404-reasons branch October 20, 2015 06:25
@lock
Copy link
Copy Markdown

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CORS errors to 404 responses

2 participants