小弟 目前 使用 Ubuntu 4.1.2-16ubuntu2
PHP Version 5.3.14
Apache 2.0 Handler
架設了一個網站
想要透過 另一個網頁伺服器(IIS,Aspx)抓取 此網站的 pdf檔
但是遇到 CORS 的問題
想要在 Apache 的 http response header
增加 header
如下
Header set Access-Control-Allow-Origin "
http://localhost:53695"
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header set Access-Control-Max-Age "1000"
Header set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
Header set Access-Control-Allow-Credentials "false"
但是 修改了 /etc/config/apache/original/httpd.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Header set Access-Control-Allow-Origin "
http://192.168.20.228:82"
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header set Access-Control-Max-Age "1000"
Header set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
Header set Access-Control-Allow-Credentials "false"
</Directory>
<Directory "/root/daily_build/3.7.x/Model/TS-469/../../NasMgmt/HTTP/apache_install_tmp/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
但是沒有 work 請用我該如何修改。