[asterisk-commits] qwell: branch qwell/cross-origin_resource_sharing r394188 - in /team/qwell/cr...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 12 11:58:11 CDT 2013
Author: qwell
Date: Fri Jul 12 11:58:10 2013
New Revision: 394188
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=394188
Log:
Log when an origin match fails. Also show allowed origins on CLI.
Modified:
team/qwell/cross-origin_resource_sharing/res/res_stasis_http.c
team/qwell/cross-origin_resource_sharing/res/stasis_http/cli.c
Modified: team/qwell/cross-origin_resource_sharing/res/res_stasis_http.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/cross-origin_resource_sharing/res/res_stasis_http.c?view=diff&rev=394188&r1=394187&r2=394188
==============================================================================
--- team/qwell/cross-origin_resource_sharing/res/res_stasis_http.c (original)
+++ team/qwell/cross-origin_resource_sharing/res/res_stasis_http.c Fri Jul 12 11:58:10 2013
@@ -370,6 +370,7 @@
* will not follow redirects."
*/
if (!origin_allowed(origin)) {
+ ast_log(LOG_NOTICE, "Origin header '%s' does not match an allowed origin.\n", origin);
return;
}
@@ -725,6 +726,7 @@
* unbounded."
*/
if (!origin_allowed(origin)) {
+ ast_log(LOG_NOTICE, "Origin header '%s' does not match an allowed origin.\n", origin);
return;
}
Modified: team/qwell/cross-origin_resource_sharing/res/stasis_http/cli.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/cross-origin_resource_sharing/res/stasis_http/cli.c?view=diff&rev=394188&r1=394187&r2=394188
==============================================================================
--- team/qwell/cross-origin_resource_sharing/res/stasis_http/cli.c (original)
+++ team/qwell/cross-origin_resource_sharing/res/stasis_http/cli.c Fri Jul 12 11:58:10 2013
@@ -71,6 +71,7 @@
}
ast_cli(a->fd, "\n");
ast_cli(a->fd, "Auth realm: %s\n", conf->general->auth_realm);
+ ast_cli(a->fd, "Allowed Origins: %s\n", conf->general->allowed_origins);
ast_cli(a->fd, "User count: %d\n", ao2_container_count(conf->users));
return CLI_SUCCESS;
}
More information about the asterisk-commits
mailing list