CORS

ScotWatson

New Member
Messages
9
Reaction score
0
Points
1
I am experimenting with using PHP as an API. However, I am getting CORS errors. How do I configure my domain to accept CORS?
 

ScotWatson

New Member
Messages
9
Reaction score
0
Points
1
Thank you for the reference. However, I still need a little help:
- It says to add a line to the .conf or .htaccess file. Where do I find these files?
- It gives terminal commands. How do I open the terminal for this server?
- It says module mod_headers is required. How do I ensure that module is installed?
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
Look in the domains /public_html directory for a file .htaccess. If not there create it.
x10 Free services does not have terminal access. htaccess is your only option.
Don't see loaded modules in phpinfo - not sure about mod_headers.
 
Top