Apache 访问控制允许源

Apache 访问控制允许源,apache,backbone.js,Apache,Backbone.js,不确定到底是什么问题-我在apache上有一个web应用程序,它的木偶主干模型连接到不同端口的服务器端。我在下面尝试允许访问,但没有看到效果: 这在httpd.conf的目录标记下 <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> Header module is loaded as ./apachectl -M result

不确定到底是什么问题-我在apache上有一个web应用程序,它的木偶主干模型连接到不同端口的服务器端。我在下面尝试允许访问,但没有看到效果:

这在httpd.conf的目录标记下

   <IfModule mod_headers.c>
         Header set Access-Control-Allow-Origin  "*"
    </IfModule>


Header module is loaded as ./apachectl -M results below
 Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 mpm_worker_module (static)
 authn_file_module (shared)
 authn_core_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 authz_core_module (shared)
 access_compat_module (shared)
 auth_basic_module (shared)
 reqtimeout_module (shared)
 filter_module (shared)
 mime_module (shared)
 log_config_module (shared)
 env_module (shared)
 headers_module (shared)
 setenvif_module (shared)
 version_module (shared)
 unixd_module (shared)
 status_module (shared)
 autoindex_module (shared)
 dir_module (shared)
 alias_module (shared)

这没用。我的设置如下:标题集访问控制允许来源*标题集访问控制允许标题来源,X-request-With,内容类型,接受标题集访问控制允许凭据true,但错误相同。