Solve the Apache cross-origin request problem (troubled to crash)

Solve the Apache cross-origin request problem

Error description to
Insert picture description here
solve the problem

  1. Find httpd.conf, uncomment the following sentence
    LoadModule headers_module modules/mod_headers.so
  2. Add the code in the red box in httpd.conf
    Insert picture description here
  3. Restart the server, test the
    Insert picture description here
    Insert picture description here
    successful access, and call it a day!

Guess you like

Origin blog.csdn.net/L333333333/article/details/104148148