Skip to content
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

CORS: Remote script should not be able to import local module file #4455

Closed
KSXGitHub opened this issue Mar 22, 2020 · 4 comments
Closed

CORS: Remote script should not be able to import local module file #4455

KSXGitHub opened this issue Mar 22, 2020 · 4 comments

Comments

@KSXGitHub
Copy link
Contributor

KSXGitHub commented Mar 22, 2020

Steps to reproduce

  1. Create a local JavaScript module file named /test-data.js: https://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/init.sh.
  2. Execute deno run https://gist.githubusercontent.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b/raw/9d7d84910b344eb8580be8b91cf539e18e565e5d/deno.js.

Resource: https://gist.github.com/KSXGitHub/62cb052060dc169796ab3698ff53c33b

Expected behavior

Error, just like in Chrome.

Actual behavior

It read data from local file and printed it.

@frank-dspeed
Copy link

@KSXGitHub Hello again my friend I think this is the wrong direction. deno is not a browser it aims also not to be a serverless function runner (running unknown user-supplied functions).

you can easily isolate the deno files into a container.

@kitsonk
Copy link
Contributor

kitsonk commented Mar 22, 2020

Duplicate of #2768

Please try to search before opening new issues.

@KSXGitHub
Copy link
Contributor Author

@kitsonk GitHub search is pretty limited.

@kitsonk
Copy link
Contributor

kitsonk commented Mar 22, 2020

I used remote import local and it came up with 10 issues, the title of the referenced issue made it rather obvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants