Skip to content

Question: Is it possible to configure CORS? #16

Open
@WalternativE

Description

@WalternativE

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!

Activity

ghost added
documentationImprovements or additions to documentation
on Aug 17, 2022
ghost added
enhancementNew feature or request
on Aug 17, 2022
w3ichen

w3ichen commented on Jul 27, 2023

@w3ichen

Still not resolved in 2023! 😭
This pull request did fix it for me: #84.

So I cloned the v1.13 release, make the changes from the PR, and re-made the binaries. So that I could simply add this line to my Dockerfile and it would work for my AWS lambda image.

RUN curl -Lo /usr/local/bin/aws-lambda-rie https://github.com/MecSimCalc/aws-lambda-runtime-interface-emulator/raw/msc-v1.13/bin/aws-lambda-rie && chmod +x /usr/local/bin/aws-lambda-rie

It's not ideal, but better than nothing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @WalternativE@w3ichen

      Issue actions

        Question: Is it possible to configure CORS? · Issue #16 · aws/aws-lambda-runtime-interface-emulator