Skip to content

Fix images not loading #27

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

Merged
merged 4 commits into from
Dec 14, 2021
Merged

Fix images not loading #27

merged 4 commits into from
Dec 14, 2021

Conversation

code-asher
Copy link
Member

@code-asher code-asher requested a review from jsjoeio December 14, 2021 20:15
Copy link

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Any additional context future us would want to remember about why this fixes it?

@code-asher
Copy link
Member Author

Hmm yeah I was not completely sure what to put here. I tested Codespaces and theirs works because they use a CDN and there is special logic for adding the CDN to the CSP. But for instances serving the extension from the same host it fails. I am not sure if this is technically a bug but it seems to be?

I should mark this change so we can find it more easily and I will add some kind of note.

@code-asher
Copy link
Member Author

Actually adding this to that spot would be a better fix, one sec.

@code-asher
Copy link
Member Author

Yeah I think this is better because then you can see the change in contrast with the CDN code so it might make more sense why we have to add self.

@code-asher code-asher merged commit 97ea564 into coder:main Dec 14, 2021
@code-asher code-asher deleted the images branch December 14, 2021 20:50
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

Successfully merging this pull request may close these issues.

2 participants