aws / aws/aws-lambda-runtime-interface-emulator

Question: Is it possible to configure CORS?

Open
#16 1 comment 21 reactions 0 assignees View on GitHub
documentation enhancement
Dominant language
Go
Stars
1.1k
Forks
118
Avg merge
42m
Merged PRs (30d)
2

Description

Hi, y'all! First of all thanks for your great work. My first time using AWS Lambda tooling and I'm really enjoying the experience so far 😊

My question because I didn't really find anything in the docs (which makes sense as the product is rather new): is it possible to configure CORS for the local RIE docker container which holds my custom function? Once it is deployed I'd imagine you would configure this directly in AWS but until then I currently don't see a way how I'd tell it to set CORS headers.

It's not the biggest of problems, as I could just use another pass-through CORS proxy locally. I was just wondering whether this was already a supported scenario.

Thanks a lot in advance!

Contributor guide

Open the contributing guide

Research direction

The issue names the local RIE Docker container, custom function, and CORS headers but no source file or test. Start by checking the existing documentation and local request handling for CORS configuration; done would be a documented supported way to set CORS headers locally, or a clear statement that it is not supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, go
Domain
api, cloud, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.