Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target URL in CORS error message #1228

Merged
merged 2 commits into from Jul 25, 2023
Merged

Conversation

yohanboniface
Copy link
Member

fix #1226

@@ -95,7 +95,7 @@ L.U.Xhr = L.Evented.extend({
// 0 === request cut by user or CORS
self.ui.alert({
content: L._(
'Issue reaching that URL (network problem or CORS protection)'
'Issue reaching that URL (network problem or CORS protection)' + ` ${settings.uri}`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'Issue reaching that URL (network problem or CORS protection)' + ` ${settings.uri}`
`Issue reaching that URL (network problem or CORS protection) ${settings.uri}`

Copy link
Member Author

Choose a reason for hiding this comment

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

Why not, even if this means that every languages would need an update, but in that case I'd better add a variable, to keep the string "simple" for translators. I'll do that :)

@yohanboniface yohanboniface merged commit 2821cfb into master Jul 25, 2023
@yohanboniface yohanboniface deleted the url-in-cors-message branch July 25, 2023 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display URL in CORS message
2 participants