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

CSP Content Security Policy error #1265

Closed
gc392 opened this issue Dec 5, 2018 · 3 comments
Closed

CSP Content Security Policy error #1265

gc392 opened this issue Dec 5, 2018 · 3 comments
Labels
ionitron: stale issue This issue has not seen any activity for a long period of time

Comments

@gc392
Copy link

gc392 commented Dec 5, 2018

Stencil version:

[x] feature request

I am serving a webcomponent through an API gateway in a secure environment, we have an strict policy and I am getting Content Security Policy (CSP) errors because of this line
https://github.com/ionic-team/stencil/blob/v0.16.1-4/src/client/core-esm.ts#L69
It'd be possible to rewrite this method to use normal function? like
const createHostConstructor = (w) => { return class extends w.HTMLElement{} }

@ionitron-bot ionitron-bot bot added the triage label Dec 5, 2018
@gc392
Copy link
Author

gc392 commented Dec 14, 2018

I created a PR
#1287

@positlabs
Copy link

I'm also getting CSP errors due to script injection.

Screen Shot 2019-03-20 at 1 48 28 PM

@ionitron-bot ionitron-bot bot removed the triage label Apr 3, 2019
@ionitron-bot ionitron-bot bot added the ionitron: stale issue This issue has not seen any activity for a long period of time label May 3, 2019
@ionitron-bot
Copy link

ionitron-bot bot commented May 3, 2019

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.

Thank you for using Stencil!

@ionitron-bot ionitron-bot bot closed this as completed May 3, 2019
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators May 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ionitron: stale issue This issue has not seen any activity for a long period of time
Projects
None yet
Development

No branches or pull requests

3 participants