We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Per OWASP recommendations, I'd like to remove the "X-Powered-By" header.
Unless there is another option to remove a header with a Cloud Run instance behind a GCP API Gateway, the following is what I'd envision:
According to the shelf documentation, this is doable by passing null for the header:
null
Future<HttpServer> serve( Handler handler, Object address, int port, {SecurityContext? securityContext, int? backlog, bool shared = false, String? poweredByHeader = 'Dart with package:shelf'} )
In serve.dart there is a call to run.
serve.dart
run
Within run, shelf_io.serve is called, which could be parameterized to pass null to the poweredByHeader param.
poweredByHeader
https://github.com/GoogleCloudPlatform/functions-framework-dart/blob/main/functions_framework/lib/serve.dart
The text was updated successfully, but these errors were encountered:
PR welcome!
Sorry, something went wrong.
No branches or pull requests
Per OWASP recommendations, I'd like to remove the "X-Powered-By" header.
Unless there is another option to remove a header with a Cloud Run instance behind a GCP API Gateway, the following is what I'd envision:
According to the shelf documentation, this is doable by passing
null
for the header:In
serve.dart
there is a call torun
.Within run, shelf_io.serve is called, which could be parameterized to pass
null
to thepoweredByHeader
param.https://github.com/GoogleCloudPlatform/functions-framework-dart/blob/main/functions_framework/lib/serve.dart
The text was updated successfully, but these errors were encountered: