Open loren-m-crawford opened 2 years ago
@loren-m-crawford
Please try to update
/v1/foo
=>
v1/foo
This only works behind the API Gateway and API is called by HTTP request, if you're using Lambda invoke (https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html) it may not work.
Hey @tho-asterist! Thank you for getting back to me :) We're using an HTTP request, but your changes still don't work. Do you have another suggestion?
Please make sure to include serverless-whitelisting
in plugins and use the latest version (0.0.6).
Below is the working setting in my project (I’m using python).
plugins:
- serverless-python-requirements
- serverless-wsgi
- serverless-whitelisting
custom:
wsgi:
app: app.app
packRequirements: false
pythonRequirements:
layer: true
serverless-whitelisting:
stage: ${self:provider.stage}
privateStages:
- production
netblocks:
- <redacted>
publicPaths:
- v1/foo
@loren-m-crawford Does it solve your issue?
Hey! I'm having trouble getting publicPaths to work. Perhaps this is user error, but I've added the paths that I've defined under my function events in my serverless file but they still seem to be behind the netblocks. Can you clarify how to use publicPaths?