# \#api-gateway

**URL:** https://forum.serverless.com/tag/api-gateway/18.md

[Latest](https://forum.serverless.com/latest.md) · [Categories](https://forum.serverless.com/categories.md) · [Tags](https://forum.serverless.com/tags.md)

---

## [Serverless Cors Issue Help](https://forum.serverless.com/t/serverless-cors-issue-help/20687)

<div class="topic-metadata">

**Author:** [@lucas1068](https://forum.serverless.com/u/lucas1068)\
**Replies:** 2\
**Last updated:** [April 21, 2026, 10:53pm UTC](https://forum.serverless.com/t/serverless-cors-issue-help/20687 "2026-04-21T22:53:33Z")

</div>

I’m facing a persistent CORS issue when trying to make a POST request from my frontend application to an API deployed with the Serverless Framework. My frontend is running on localhost:5173 (dev server) and the backend A…

---

## [Unable to update log format or level in lambdas defined with serverless framework](https://forum.serverless.com/t/unable-to-update-log-format-or-level-in-lambdas-defined-with-serverless-framework/20920)

<div class="topic-metadata">

**Author:** [@YneroY](https://forum.serverless.com/u/YneroY)\
**Replies:** 2\
**Last updated:** [March 31, 2026, 6:20pm UTC](https://forum.serverless.com/t/unable-to-update-log-format-or-level-in-lambdas-defined-with-serverless-framework/20920 "2026-03-31T18:20:13Z")

</div>

I have a serverless.yml which contains definition and deployment for multiple lambdas and also the corresponding api gateway. However, I cannot get the log and log level to be applied to the lambda. The below is added s…

---

## [Errors with CORS and preflight request - API Gateway + Lambda](https://forum.serverless.com/t/errors-with-cors-and-preflight-request-api-gateway-lambda/20718)

<div class="topic-metadata">

**Author:** [@lucas1068](https://forum.serverless.com/u/lucas1068)\
**Replies:** 2\
**Last updated:** [March 17, 2026, 12:11am UTC](https://forum.serverless.com/t/errors-with-cors-and-preflight-request-api-gateway-lambda/20718 "2026-03-17T00:11:49Z")

</div>

This error occurs using API Gateway v1 with lambda-proxy. Browser client is doing a preflight request (option): 502 error Then the actual request (post): CORS error My serverless.yaml is configured this way: fu…

---

## [CORS Error in Safari: No Access-Control-Allow-Origin Header on Response](https://forum.serverless.com/t/cors-error-in-safari-no-access-control-allow-origin-header-on-response/21141)

<div class="topic-metadata">

**Author:** [@daay22](https://forum.serverless.com/u/daay22)\
**Replies:** 1\
**Last updated:** [February 26, 2026, 9:40pm UTC](https://forum.serverless.com/t/cors-error-in-safari-no-access-control-allow-origin-header-on-response/21141 "2026-02-26T21:40:13Z")

</div>

I am facing an issue where my backend API is returning a CORS error in Safari but works fine in Chrome and Postman. The specific error in Safari is: Access to XMLHttpRequest at ‘https://backendServer/users/login?email=e…

---

## [Seeking Advice on Best Practices for Directory Structure and Architecture in Serverless Framework (TypeScript)](https://forum.serverless.com/t/seeking-advice-on-best-practices-for-directory-structure-and-architecture-in-serverless-framework-typescript/20545)

<div class="topic-metadata">

**Author:** [@lucas1068](https://forum.serverless.com/u/lucas1068)\
**Replies:** 2\
**Last updated:** [February 13, 2026, 1:54pm UTC](https://forum.serverless.com/t/seeking-advice-on-best-practices-for-directory-structure-and-architecture-in-serverless-framework-typescript/20545 "2026-02-13T13:54:42Z")

</div>

Hi everyone, I’m currently working on a serverless project using the Serverless Framework with TypeScript, and I’m looking for advice and best practices on how to organize the project’s structure and architecture. Here…

---

## [InvalidSignatureException after upgrade NodeJS 20 to 22 in AWS lambda](https://forum.serverless.com/t/invalidsignatureexception-after-upgrade-nodejs-20-to-22-in-aws-lambda/21476)

<div class="topic-metadata">

**Author:** [@ThangBui2703](https://forum.serverless.com/u/ThangBui2703)\
**Replies:** 1\
**Last updated:** [February 5, 2026, 4:27pm UTC](https://forum.serverless.com/t/invalidsignatureexception-after-upgrade-nodejs-20-to-22-in-aws-lambda/21476 "2026-02-05T16:27:42Z")

</div>

Hi everyone, I am facing with problem when upgrade to nodeJS 22 that i have a lambda call to another lambda via axios, the error send back with error 502, when i check the cloud watch in lambda receive call it throw erro…

---

## [Setting up a NestJS project for AWS Lambda?](https://forum.serverless.com/t/setting-up-a-nestjs-project-for-aws-lambda/19571)

<div class="topic-metadata">

**Author:** [@Repox](https://forum.serverless.com/u/Repox)\
**Replies:** 2\
**Last updated:** [January 2, 2026, 3:38pm UTC](https://forum.serverless.com/t/setting-up-a-nestjs-project-for-aws-lambda/19571 "2026-01-02T15:38:22Z")

</div>

Hi everyone. I was looking at the following tutorial: AWS Nest application example (NodeJS & Typescript) It seems to me that some quite essential parts are skipped for me to learn this. The tutorial states that I shou…

---

## [Put Lambda Under Existing APIG Resource But Different Method](https://forum.serverless.com/t/put-lambda-under-existing-apig-resource-but-different-method/21247)

<div class="topic-metadata">

**Author:** [@shub.saini.09](https://forum.serverless.com/u/shub.saini.09)\
**Replies:** 2\
**Last updated:** [December 23, 2025, 5:49pm UTC](https://forum.serverless.com/t/put-lambda-under-existing-apig-resource-but-different-method/21247 "2025-12-23T17:49:14Z")

</div>

In the APIG, my path is /users with GET method already created using Cloudformation. In my Serverless, i want to create a new POST method under it. How do i do it? I already tried below but it does not work. // functio…

---

## [Serverless Offline Creating Undefined Folder](https://forum.serverless.com/t/serverless-offline-creating-undefined-folder/21379)

<div class="topic-metadata">

**Author:** [@franzcvel2](https://forum.serverless.com/u/franzcvel2)\
**Replies:** 1\
**Last updated:** [December 13, 2025, 11:15am UTC](https://forum.serverless.com/t/serverless-offline-creating-undefined-folder/21379 "2025-12-13T11:15:00Z")

</div>

Hello when I use serverless-offline@14.4.0 I am able to run locally however AFTER invoking an endpoint, it’s generating a folder named undefined/temp/tsx-{logged-user} in windows just want to confirm if this is normal? …

---

## [API Gateway Integration Timeout extended](https://forum.serverless.com/t/api-gateway-integration-timeout-extended/20268)

<div class="topic-metadata">

**Author:** [@willk](https://forum.serverless.com/u/willk)\
**Replies:** 8\
**Last updated:** [September 30, 2025, 5:05pm UTC](https://forum.serverless.com/t/api-gateway-integration-timeout-extended/20268 "2025-09-30T17:05:56Z")

</div>

With AWS now enabling the ability to increase timeouts. How would one go about setting the timeout for an integration in serverless? Currently the gateway is setup through the provider section and a lambda attached w…

---

## [API gateway CORS error if I pass cors in provider level](https://forum.serverless.com/t/api-gateway-cors-error-if-i-pass-cors-in-provider-level/20980)

<div class="topic-metadata">

**Author:** [@zil31](https://forum.serverless.com/u/zil31)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 8:59pm UTC](https://forum.serverless.com/t/api-gateway-cors-error-if-i-pass-cors-in-provider-level/20980 "2025-04-23T20:59:02Z")

</div>

Hello, I am using serverless + API gateway and facing cors error if I pass custom headers. I am adding cors configuration on the function level, and then it’s working fine, but at the provider level it’s not doing anyt…

---

## [The "serverless-domain-manager" basePath fails for custom domains](https://forum.serverless.com/t/the-serverless-domain-manager-basepath-fails-for-custom-domains/21091)

<div class="topic-metadata">

**Author:** [@punkbit](https://forum.serverless.com/u/punkbit)\
**Replies:** 1\
**Last updated:** [March 28, 2025, 1:19am UTC](https://forum.serverless.com/t/the-serverless-domain-manager-basepath-fails-for-custom-domains/21091 "2025-03-28T01:19:45Z")

</div>

I’ve started by making the basePath ‘’ (none). A simple curl to custom domain endpoint would return a response. For example const serverless = require("serverless-http"); const express = require("express"); const app = …

---

## [Implementing newly-launched synchronous workflows for step functions](https://forum.serverless.com/t/implementing-newly-launched-synchronous-workflows-for-step-functions/13642)

<div class="topic-metadata">

**Author:** [@boxabirds](https://forum.serverless.com/u/boxabirds)\
**Replies:** 11\
**Last updated:** [March 9, 2025, 8:44am UTC](https://forum.serverless.com/t/implementing-newly-launched-synchronous-workflows-for-step-functions/13642 "2025-03-09T08:44:54Z")

</div>

Hi all I have a scenario that is perfect for the Dec 2020 update to step functions: “Synchronous express workflows”. Express step functions can now block until complete, which means you can link them to the API Gateway a…

---

## [\`httpApi\` JWT Authorizer based on Docs cannot be found when specified](https://forum.serverless.com/t/httpapi-jwt-authorizer-based-on-docs-cannot-be-found-when-specified/20134)

<div class="topic-metadata">

**Author:** [@flecher0](https://forum.serverless.com/u/flecher0)\
**Replies:** 2\
**Last updated:** [February 17, 2025, 3:13pm UTC](https://forum.serverless.com/t/httpapi-jwt-authorizer-based-on-docs-cannot-be-found-when-specified/20134 "2025-02-17T15:13:16Z")

</div>

Issue description As I am adding a JWT authorizer, which is supposed to send requests to the Auth0 authorization server, to each endpoint’s Lambda function based on the deployment stage, I am receiving the error below wh…

---

## [Error on Deploy: Request Entity Too Large](https://forum.serverless.com/t/error-on-deploy-request-entity-too-large/20077)

<div class="topic-metadata">

**Author:** [@tenlisboa](https://forum.serverless.com/u/tenlisboa)\
**Replies:** 1\
**Last updated:** [January 13, 2025, 4:33pm UTC](https://forum.serverless.com/t/error-on-deploy-request-entity-too-large/20077 "2025-01-13T16:33:17Z")

</div>

Hi, I am trying to deploy a Sls NodeJS application with this context: Serverless Version: 3.38.0 NodeJS Version: 18.20.0 From the previous successful deploy to the one with this error Request Entity Too Large just cha…

---

## [How to debug a lambda function that is been invoked locally? NodeJS & windows](https://forum.serverless.com/t/how-to-debug-a-lambda-function-that-is-been-invoked-locally-nodejs-windows/20807)

<div class="topic-metadata">

**Author:** [@lucas1068](https://forum.serverless.com/u/lucas1068)\
**Replies:** 0\
**Last updated:** [November 28, 2024, 12:35pm UTC](https://forum.serverless.com/t/how-to-debug-a-lambda-function-that-is-been-invoked-locally-nodejs-windows/20807 "2024-11-28T12:35:23Z")

</div>

I’m trying to setup debugger when I run a function locally. Currently I execute function this way: serverless invoke local --function myFunctionName --env dev --path ./events/myFunctionName.json I’d like to know how co…

---

## [Using Function URL and API Gateway in a single lambda](https://forum.serverless.com/t/using-function-url-and-api-gateway-in-a-single-lambda/20662)

<div class="topic-metadata">

**Author:** [@arul7](https://forum.serverless.com/u/arul7)\
**Replies:** 3\
**Last updated:** [November 19, 2024, 12:14pm UTC](https://forum.serverless.com/t/using-function-url-and-api-gateway-in-a-single-lambda/20662 "2024-11-19T12:14:27Z")

</div>

Hi there, Here I’m trying to deploy my lambda with both function URL and API Gateway to be enabled. Function URL for communication between my internal server where my ecs will invoke this lambda so I configured the funct…

---

## [Issue with serverless cloudformation stack doesn't exists](https://forum.serverless.com/t/issue-with-serverless-cloudformation-stack-doesnt-exists/20529)

<div class="topic-metadata">

**Author:** [@gauravhello](https://forum.serverless.com/u/gauravhello)\
**Replies:** 1\
**Last updated:** [October 23, 2024, 5:47pm UTC](https://forum.serverless.com/t/issue-with-serverless-cloudformation-stack-doesnt-exists/20529 "2024-10-23T17:47:58Z")

</div>

I’ve manually deleted a cloudformation stack. Now, when I try to run same sls which I ran earlier it throws the code is running this aws code pipeline using aws code build and the command being used in buildspec.yml is …

---

## [Upload image to s3, image broken](https://forum.serverless.com/t/upload-image-to-s3-image-broken/12390)

<div class="topic-metadata">

**Author:** [@nkhanhcong](https://forum.serverless.com/u/nkhanhcong)\
**Replies:** 2\
**Last updated:** [October 22, 2024, 4:07pm UTC](https://forum.serverless.com/t/upload-image-to-s3-image-broken/12390 "2024-10-22T16:07:26Z")

</div>

I upload image to s3 through lambda function. I used sls offline start to upload, everything is fine, I could see the image that I uploaded. But when I deploy it to aws and call api, my image was uploaded but couldn’t …

---

## [Sls failing to deploy api to APIGateway](https://forum.serverless.com/t/sls-failing-to-deploy-api-to-apigateway/20649)

<div class="topic-metadata">

**Author:** [@linuxmant](https://forum.serverless.com/u/linuxmant)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 2:34am UTC](https://forum.serverless.com/t/sls-failing-to-deploy-api-to-apigateway/20649 "2024-10-16T02:34:29Z")

</div>

I know there are a lot of topics explaining this error, but none match what I’m experiencing. I recently created a go module to deploy some lambdas to APIGateway using serverless v3 and everything worked as expected, ev…

---

## [One Gateway For many services](https://forum.serverless.com/t/one-gateway-for-many-services/20591)

<div class="topic-metadata">

**Author:** [@kferrone](https://forum.serverless.com/u/kferrone)\
**Replies:** 2\
**Last updated:** [September 30, 2024, 6:27pm UTC](https://forum.serverless.com/t/one-gateway-for-many-services/20591 "2024-09-30T18:27:54Z")

</div>

I have many git repos each with a serverless.yaml and a couple of lambdas. I made a rest api gateway with terraform. I want to share this with all of the projects so I end up with a single api gateway. I am concerned by…

---

## [Image file is not viewing uploaded by s3](https://forum.serverless.com/t/image-file-is-not-viewing-uploaded-by-s3/16217)

<div class="topic-metadata">

**Author:** [@kiranmatrixlee](https://forum.serverless.com/u/kiranmatrixlee)\
**Replies:** 5\
**Last updated:** [September 19, 2024, 3:54am UTC](https://forum.serverless.com/t/image-file-is-not-viewing-uploaded-by-s3/16217 "2024-09-19T03:54:44Z")

</div>

I am uploading image files using s3. But whenever I try to download using the URL as well as from the s3 console will download the image file. But, it will not visible to the image viewer. It just shows an incompatible f…

---

## [Create API Gateway with VPC Link integration](https://forum.serverless.com/t/create-api-gateway-with-vpc-link-integration/20480)

<div class="topic-metadata">

**Author:** [@gvazquez1993](https://forum.serverless.com/u/gvazquez1993)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 4:41pm UTC](https://forum.serverless.com/t/create-api-gateway-with-vpc-link-integration/20480 "2024-09-02T16:41:03Z")

</div>

Hi guys, I’m facing the issue that each time I want to create an API Gateway using an specific VPC Link ID the API Gateway is being created with AWS Lambda Integration. provider: name: aws runtime: nodejs18.x region:…

---

## [Is it possible to do VPC-link integration without lambda?](https://forum.serverless.com/t/is-it-possible-to-do-vpc-link-integration-without-lambda/18123)

<div class="topic-metadata">

**Author:** [@FranciscoCross](https://forum.serverless.com/u/FranciscoCross)\
**Replies:** 3\
**Last updated:** [August 27, 2024, 3:51pm UTC](https://forum.serverless.com/t/is-it-possible-to-do-vpc-link-integration-without-lambda/18123 "2024-08-27T15:51:31Z")

</div>

My idea is to build an endpoint in an aws api gateway and use vpc link, the problem is that I can make it work but I have to use a mock function to create the event, my idea was to see if it can’t be done do in a way tha…

---

## [Fixing CORS error from API Gateway with Serverless?](https://forum.serverless.com/t/fixing-cors-error-from-api-gateway-with-serverless/20451)

<div class="topic-metadata">

**Author:** [@chrisspen](https://forum.serverless.com/u/chrisspen)\
**Replies:** 0\
**Last updated:** [August 21, 2024, 2:33pm UTC](https://forum.serverless.com/t/fixing-cors-error-from-api-gateway-with-serverless/20451 "2024-08-21T14:33:39Z")

</div>

How do you use Serverless to create an AWS API Gateway that can be accessed via a browser? I tried following these serverless docs that describe how to allow CORS on an API Gateway but they don’t seem to work at all. I…

---

## [Setting up Global Rest API Authorizer](https://forum.serverless.com/t/setting-up-global-rest-api-authorizer/20444)

<div class="topic-metadata">

**Author:** [@dsignature-dev](https://forum.serverless.com/u/dsignature-dev)\
**Replies:** 0\
**Last updated:** [August 20, 2024, 2:06am UTC](https://forum.serverless.com/t/setting-up-global-rest-api-authorizer/20444 "2024-08-20T02:06:23Z")

</div>

Working with serverless v4. The cognito authorizer works when used with a specific lambda function. Trying to get it setup globally to work with all lambda functions. Error: Invalid configuration encountered at ‘pro…

---

## [Using default values to skip array value](https://forum.serverless.com/t/using-default-values-to-skip-array-value/17126)

<div class="topic-metadata">

**Author:** [@SebVen](https://forum.serverless.com/u/SebVen)\
**Replies:** 1\
**Last updated:** [August 16, 2024, 10:09pm UTC](https://forum.serverless.com/t/using-default-values-to-skip-array-value/17126 "2024-08-16T22:09:26Z")

</div>

This post is inspired by the following one on stackoverflow: amazon web services - Use stage parameters to skip fields in Serverless Framework - Stack Overflow In the code below, is there a particular 'default value' th…

---

## [Not able to run the bitbucket pipeline for deploying AWS Serverless sample app](https://forum.serverless.com/t/not-able-to-run-the-bitbucket-pipeline-for-deploying-aws-serverless-sample-app/20393)

<div class="topic-metadata">

**Author:** [@deshdeepak](https://forum.serverless.com/u/deshdeepak)\
**Replies:** 0\
**Last updated:** [August 1, 2024, 10:58pm UTC](https://forum.serverless.com/t/not-able-to-run-the-bitbucket-pipeline-for-deploying-aws-serverless-sample-app/20393 "2024-08-01T22:58:41Z")

</div>

I have a sample code that includes storing index.html page on s3 and then using the API gateway to place the data inputted through the site to the dynamodb. The code is working perfectly through the local machine but wh…

---

## [Lambda error regex not working](https://forum.serverless.com/t/lambda-error-regex-not-working/20371)

<div class="topic-metadata">

**Author:** [@dmack](https://forum.serverless.com/u/dmack)\
**Replies:** 3\
**Last updated:** [July 27, 2024, 2:57am UTC](https://forum.serverless.com/t/lambda-error-regex-not-working/20371 "2024-07-27T02:57:48Z")

</div>

Hi team, I am using an API gateway connected to a Lambda function. The Lambda function response is returning: Response { “statusCode”: 400, “body”: “{"errorType":"UserLambdaValidationException","message":"PreSignUp…

---

## [HTTP API (API Gateway v2) Is Not Setting Trigger/Endpoint Path In Lambda Correctly](https://forum.serverless.com/t/http-api-api-gateway-v2-is-not-setting-trigger-endpoint-path-in-lambda-correctly/18862)

<div class="topic-metadata">

**Author:** [@Roprov](https://forum.serverless.com/u/Roprov)\
**Replies:** 1\
**Last updated:** [July 25, 2024, 11:19pm UTC](https://forum.serverless.com/t/http-api-api-gateway-v2-is-not-setting-trigger-endpoint-path-in-lambda-correctly/18862 "2024-07-25T23:19:01Z")

</div>

Hi, I am trying to deploy a HTTP API (API Gateway v2) with a lambda integration. But for some reason after deploying it doesn’t setup the trigger correctly on the lambda as it just sets the default endpoint without the …

[Next page](https://forum.serverless.com/tag/api-gateway/18.md?match_all_tags=true&page=1&tags%5B%5D=api-gateway)
