Header set Access-Control-Allow-Origin in .htaccess

Top 10 Email verification services

 


 

Submitted by leopathu on Sun, 05/08/2022 - 13:31
htaccess

Add the following code in your .htaccess file,

Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"

Don't forgot to enable apache header module

sudo a2enmod headers
Tags

 

Top 10 Email Verification Services