You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title: Request validation triggers 404 for CORS preflight OPTIONS requests
Description:
When a grpc-json transcoder is deployed with CORS enabled preflight (OPTIONS) requests fail if request validation is enabled. This likely happens because the transcoder attempts to validate the HTTP request's method before CORS, triggering an error as OPTIONS is not recognized as a valid "transcodable" method.
Repro steps:
Setup the grpc-json transcoder with request validation enabled and CORS rules and observe that when request_validation_options with reject_unknown_method is set CORS will fail with a 404 error:
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
Title: Request validation triggers 404 for CORS preflight OPTIONS requests
Description:
When a grpc-json transcoder is deployed with CORS enabled preflight (OPTIONS) requests fail if request validation is enabled. This likely happens because the transcoder attempts to validate the HTTP request's method before CORS, triggering an error as OPTIONS is not recognized as a valid "transcodable" method.
Repro steps:
Setup the grpc-json transcoder with request validation enabled and CORS rules and observe that when
request_validation_options
withreject_unknown_method
is set CORS will fail with a 404 error:Comment out or remove the
request_validation_options
block and observe that CORS preflight (OPTIONS) works again correctly:Config:
The text was updated successfully, but these errors were encountered: