How to enable CORS in Apache?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I read "https://ubiq.co/tech-blog/set-access-control-allow-origin-cors-headers-apache/#:~:text=CORS%20in%20Apache-,To%20set%20Access%2DControl%2DAllow%2DOrigin%20header%20in%20Apache,VirtualHost%3E%20sections%20of%20your%20file.&text=The%20above%20line%20will%20allow,requests%20from%20all%20other%20domains."; and I want to enable CORS in the Apache. I have a Virtual Host file under the "/etc/httpd/conf.d/" directory. I opened it and added below line to the "<VirtualHost *:80>...</VirtualHost>" section:

Header set Access-Control-Allow-Origin "My_Web_Site.com"

Is it enough?

Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux