jeudi 26 mars 2015

Ajax communication between AWS Beanstalk and S3 Server

We recently moved to S3 from another hosting provider. We have a S3 bucket which has HTML files and a Beanstalk Bucket which holds all the APIs which is generated by PHP. I am facing CORS issue while communicating with the PHP file using AJAX from S3.


I have placed a .htaccess file in the directory of the PHP files which allows CORS. But it does not seems to work. The same worked with the other hosting provider.


The script in .htaccess file



Header set Access-Control-Allow-Origin "*"


Kindly guide how do I rectify this?





Aucun commentaire:

Enregistrer un commentaire