How to Enable CORS for Apache httpd server? (Step-By-Step Process)

前端 未结 2 1638
-上瘾入骨i
-上瘾入骨i 2020-12-19 11:05

I was wondering if anybody can help me set up CORS on my Apache web server. I would appreciate a step-by-step process because many sites online are

2条回答
  •  梦毁少年i
    2020-12-19 11:29

    The above answer is correct and put Inside the httpd.conf. This should be changed to whatever you set Document Root.

    On Ubuntu, httpd.conf is located in the directory /etc/apache2. apache2.conf is also located in /etc/apache2.

    On CENTOS 6 httpd.conf in the path /etc/httpd/conf/httpd.

    
            Header set Access-Control-Allow-Origin "*"
    
    

提交回复
热议问题