CORS issues with localhost front end to AWS EC2 backend

时间:2019-03-19 14:51:57

标签: amazon-web-services amazon-s3 cors amazon-cloudfront

I am trying to create a front end development environment.

My AWS skills are clearly not up to scratch but I can't find the answer.

I have my front end running on localhost:8080.

The backend that this front end communicates to is available at the domain api.this.url.co.uk.

The hosted dev environment, we serve the static front end via an S3 bucket. This works fine but the backend refuses anything that is from a different origin to this so my localhost does not work.

I did not create the original setup and dont understand how this EC2 is allowing requests made from the S3 origin and not others.

I see no code or configuration in the backend code that speaks of cors with the exception of an allow * which is clearly not being used.

Thanks

0 个答案:

没有答案