-
Notifications
You must be signed in to change notification settings - Fork 1k
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
HTTP call inside validation function in design document? #5042
Comments
This is deliberately prohibited. a validate_doc_update function can only depend on the input parameters and is sandboxed to prevent any network or file access. This is to ensure the result is deterministic. |
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I try to invoke a HTTP call while validating the document (perfectly, I would like to be able to perform the validation in an external endpoint), but when trying to use
fetch
or createXMLHttpRequest
object, I get aReferenceError
.Is it expected, or there is some kind of bug?
Thanks!
The text was updated successfully, but these errors were encountered: