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

前端 未结 2 1636
-上瘾入骨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条回答
  •  感情败类
    2020-12-19 11:26

    # edit your conf/httpd.conf file.  Verify that the headers module is loaded
    LoadModule headers_module modules/mod_headers.so
    
    # to whitelist every origin, use
    Header set Access-Control-Allow-Origin "*"
    

    More info: http://enable-cors.org/server_apache.html

提交回复
热议问题