All Questions
Tagged with cors amazon-web-services
453
questions
0
votes
1
answer
13
views
CORS error accessing file in S3 from Serverless Framework deployment
I have a project based on a template using Serverless Framework to deploy a react app served from an S3 bucket. The serverless deploy works fine, creates the CloudFormation stack, creates the S3 ...
0
votes
0
answers
9
views
How to fix CORS blocking maplibre-gl search option from accessing AWS Location Places indexes?
I am working on a ReactJS project where I am implementing a map from maplibre-gl-js. I have connected my app to AWS Location service using Amplify and can receive the Vector tiles from AWS. I cam ...
0
votes
0
answers
21
views
Getting CORS error in AWS (Cloudfront distribution + S3 setup)
Earlier I was accessing this cloudfront distribution from one repo, localhost:4000, and from stage env. It was all working fine. I set up a new localhost localhost:4800 and tried accessing the same ...
1
vote
0
answers
19
views
CORS pre-flight request issue when using API custom domain names
I have been stuck on this issue and it's driving me mad - for a bit of context, I'm trying to lodge a signin request from my front-end through my AWS API Gateway to a lambda function, which generates ...
0
votes
0
answers
38
views
CORS ERROR - I cant POST from a Local Website to my Lambda AWS REST API
I am developing a IoT project in which i use an ESP32 to connect to the AWS MQTT Broker, i get some readings (is a smart parking) and generate some simple DynamoDB tables, I want to deploy an API to ...
0
votes
0
answers
31
views
S3 Hosted Website and API CORS ERROR "Response to preflight request doesn't pass access control check"
I have a very light application that I am putting up on AWS. An API with PUT and OPTIONS methods that uploads files to S3. The API works correctly when run via POSTMAN, Python requests, and CURL on ...
-1
votes
0
answers
18
views
AWS API Gateway returning CORS error even if enabled [duplicate]
I'm calling an API to my AWS API Gateway and I'm getting a CORS error, not sure why as I have all the CORS parameters enabled.
The error from the browser console:
The code:
The AWS API Gateway ...
0
votes
1
answer
21
views
CORS Access-Control-* headers dropped from AWS Cloudfront Signed URL serving S3 bucket data on a custom domain
I'm serving static content from an S3 bucket via a signed url from Cloudfront that is redirected from my REST API using a 302. I'm trying to retrieve that content via my frontend web app and I'm ...
0
votes
1
answer
28
views
AWS Lambda / CRUD operations gateway blocked by CORS policy problem
I am trying to implement CRUD opretaions to my Lambda with API Gateway, you can see the implementations of my tools and the error. Even the headers are matched correct I still get the access errors
...
0
votes
0
answers
53
views
CORS Pre-flight won't work on AWS API Gateway
Have been struggling with CORS issues for a week or more. I believe everything is configured correctly but yet still I cannot make it work.
Am making an API call from a web page (hosted via AWS ...
0
votes
0
answers
39
views
blocked by CORS policy AWS 2 processes in one container python flask-cors
I have 2 processes running in 1 Docker container. A frontend and a backend. While the docker container is running properly in my computer, when deploying in aws ecs I get the following error:
Access ...
1
vote
1
answer
61
views
Unable to upload PDF to S3 bucket via presigned URL created from my Node backend
Scenario:
Client (Nextjs client component) queries backend (NextJS rest endpoint) for pre-signed URL
Backend gets presigned URL for S3 via getSignedUrl
import { S3Client, PutObjectCommand } from &...
0
votes
0
answers
27
views
Problem using VTL code in AWS CLI's response-templates
I'm trying to specify Velocity Template Language (VTL) code using the --response-templates option while creating a resource in API Gateway with AWS CLI. However, when I run the command, I'm getting ...
0
votes
2
answers
173
views
'http://localhost:3000' has been blocked by CORS
I've been trying to connect my react .js file to the back end. I have a API in API Gateway and I created a method and enabled CORS and gave it access
method.response.header.Access-Control-Allow-...
0
votes
0
answers
38
views
Handle Cors from lambda to cloudfront or s3
I am trying to create an auth service where I have a lambda that is using keycloak to authenticate an user via password grant. The service consists of a react front-end host on s3 and accessed via ...