Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ReferenceError: Headers is not defined #1768

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 80 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,83 @@ This plugin is updated by its users, I just do maintenance and ensure that PRs a

## Documentation

- [Installation](#installation)
- [Usage and command line options](#usage-and-command-line-options)
- [Run modes](#run-modes)
- [Invoke Lambda](#invoke-lambda)
- [The `process.env.IS_OFFLINE` variable](#the-processenvis_offline-variable)
- [Docker and Layers](#docker-and-layers)
- [Authorizers](#authorizers)
- [Token authorizers](#token-authorizers)
- [Custom authorizers](#custom-authorizers)
- [Remote authorizers](#remote-authorizers)
- [JWT authorizers](#jwt-authorizers)
- [Serverless plugin authorizers](#serverless-plugin-authorizers)
- [Custom headers](#custom-headers)
- [Environment variables](#environment-variables)
- [AWS API Gateway Features](#aws-api-gateway-features)
- [Velocity Templates](#velocity-templates)
- [Velocity nuances](#velocity-nuances)
- [CORS](#cors)
- [Catch-all Path Variables](#catch-all-path-variables)
- [ANY method](#any-method)
- [Lambda and Lambda Proxy Integrations](#lambda-and-lambda-proxy-integrations)
- [HTTP Proxy](#http-proxy)
- [Response parameters](#response-parameters)
- [WebSocket](#websocket)
- [Debug process](#debug-process)
- [Resource permissions and AWS profile](#resource-permissions-and-aws-profile)
- [Simulation quality](#simulation-quality)
- [Usage with other plugins](#usage-with-other-plugins)
- [Credits and inspiration](#credits-and-inspiration)
- [License](#license)
- [Contributing](#contributing)
- [Contributors](#contributors)
- [Serverless Offline](#serverless-offline)
- [Documentation](#documentation)
- [Installation](#installation)
- [Usage and command line options](#usage-and-command-line-options)
- [corsAllowHeaders](#corsallowheaders)
- [corsAllowOrigin](#corsalloworigin)
- [corsDisallowCredentials](#corsdisallowcredentials)
- [corsExposedHeaders](#corsexposedheaders)
- [disableCookieValidation](#disablecookievalidation)
- [dockerHost](#dockerhost)
- [dockerHostServicePath](#dockerhostservicepath)
- [dockerNetwork](#dockernetwork)
- [dockerReadOnly](#dockerreadonly)
- [enforceSecureCookies](#enforcesecurecookies)
- [host](#host)
- [httpPort](#httpport)
- [httpsProtocol](#httpsprotocol)
- [ignoreJWTSignature](#ignorejwtsignature)
- [lambdaPort](#lambdaport)
- [layersDir](#layersdir)
- [localEnvironment](#localenvironment)
- [noAuth](#noauth)
- [noPrependStageInUrl](#noprependstageinurl)
- [noTimeout](#notimeout)
- [prefix](#prefix)
- [reloadHandler](#reloadhandler)
- [resourceRoutes](#resourceroutes)
- [terminateIdleLambdaTime](#terminateidlelambdatime)
- [useDocker](#usedocker)
- [useInProcess](#useinprocess)
- [webSocketHardTimeout](#websockethardtimeout)
- [webSocketIdleTimeout](#websocketidletimeout)
- [websocketPort](#websocketport)
- [Run modes](#run-modes)
- [node.js](#nodejs)
- [worker-threads (default)](#worker-threads-default)
- [in-process](#in-process)
- [docker](#docker)
- [Python, Ruby, Go, Java (incl. Kotlin, Groovy, Scala)](#python-ruby-go-java-incl-kotlin-groovy-scala)
- [Invoke Lambda](#invoke-lambda)
- [The `process.env.IS_OFFLINE` variable](#the-processenvis_offline-variable)
- [Docker and Layers](#docker-and-layers)
- [Additional Options](#additional-options)
- [dockerHost](#dockerhost-1)
- [dockerHostServicePath](#dockerhostservicepath-1)
- [dockerNetwork](#dockernetwork-1)
- [dockerReadOnly](#dockerreadonly-1)
- [layersDir](#layersdir-1)
- [Authorizers](#authorizers)
- [Token authorizers](#token-authorizers)
- [Custom authorizers](#custom-authorizers)
- [Remote authorizers](#remote-authorizers)
- [JWT authorizers](#jwt-authorizers)
- [Serverless plugin authorizers](#serverless-plugin-authorizers)
- [Custom headers](#custom-headers)
- [Environment variables](#environment-variables)
- [AWS API Gateway Features](#aws-api-gateway-features)
- [Velocity Templates](#velocity-templates)
- [Velocity nuances](#velocity-nuances)
- [CORS](#cors)
- [Catch-all Path Variables](#catch-all-path-variables)
- [ANY method](#any-method)
- [Lambda and Lambda Proxy Integrations](#lambda-and-lambda-proxy-integrations)
- [HTTP Proxy](#http-proxy)
- [Response parameters](#response-parameters)
- [WebSocket](#websocket)
- [Debug process](#debug-process)
- [Interactive Debugging with Visual Studio Code (VSC)](#interactive-debugging-with-visual-studio-code-vsc)
- [Step 1 : Adding a launch configuration in IDE](#step-1--adding-a-launch-configuration-in-ide)
- [Step2 : Adding a debug script](#step2--adding-a-debug-script)
- [Resource permissions and AWS profile](#resource-permissions-and-aws-profile)
- [Simulation quality](#simulation-quality)
- [Usage with other plugins](#usage-with-other-plugins)
- [Credits and inspiration](#credits-and-inspiration)
- [License](#license)
- [Contributing](#contributing)
- [Contributors](#contributors)

## Installation

Expand Down Expand Up @@ -983,6 +1028,6 @@ We try to follow [Airbnb's JavaScript Style Guide](https://github.com/airbnb/jav
| :---------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------ |
| [m0ppers](https://github.com/m0ppers) | [footballencarta](https://github.com/footballencarta) | [bryanvaz](https://github.com/bryanvaz) | [njyjn](https://github.com/njyjn) | [kdybicz](https://github.com/kdybicz) |

| [<img alt="ericctsf" src="https://avatars.githubusercontent.com/u/42775388?v=4" width="117">](https://github.com/ericctsf) | [<img alt="brazilianbytes" src="https://avatars.githubusercontent.com/u/1900570?v=4" width="117">](https://github.com/brazilianbytes) |
| :------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------: |
| [ericctsf](https://github.com/erictsf) | [brazilianbytes](https://github.com/brazilianbytes) |
| [<img alt="ericctsf" src="https://avatars.githubusercontent.com/u/42775388?v=4" width="117">](https://github.com/ericctsf) | [<img alt="brazilianbytes" src="https://avatars.githubusercontent.com/u/1900570?v=4" width="117">](https://github.com/brazilianbytes) | [<img alt="cmeadows" src="https://avatars.githubusercontent.com/u/6526632?v=4" width="117">](https://github.com/cmeadows)
| :---------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: |
| [ericctsf](https://github.com/erictsf) | [brazilianbytes](https://github.com/brazilianbytes) | [cmeadows](https://github.com/cmeadows) |
Loading