-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error: Refusing to load module...because it does not match any entry in the module allowlist #5
Comments
@StefMa I think this probably isn't about Pkl version, it's the security feature that restricts imports unless trusted. See You can see I've configured the allowed modules here: https://github.com/jasongwartz/pkl-playground/blob/main/src/app/api/pkl/evaluate/route.ts#L36 I'm not sure about loading arbitrary HTTPS modules - that seems a bit risky. (Though I suppose allowing |
Are you able to host your |
The reason it works locally is because, as per the CLI docs, the CLI defaults to allowing both |
Given I paste the following into the playground:
While the
Steps.pkl
has the following content:I get the following error:
Locally, with
pkl 0.26.3
everything works as expectedpkl eval test.pkl
Yields to
Maybe this is an problem on an old
pkl
version? 🤔This is why I also raised this issue.
The text was updated successfully, but these errors were encountered: