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

Setup page is blank (only seems to work in Google Chrome?) #141

Closed
chriswarbo opened this issue Nov 7, 2022 · 0 comments · Fixed by #144
Closed

Setup page is blank (only seems to work in Google Chrome?) #141

chriswarbo opened this issue Nov 7, 2022 · 0 comments · Fixed by #144

Comments

@chriswarbo
Copy link

I deployed a simple codebuilder setup via Python and CDK, but visiting the github.setup.url just shows a blank page. The Javascript console has these errors (I've replaced sensitive IDs with <my-foo>):

Content Security Policy: The page's settings blocked the loading of a resource at inline ("default-src"). [<my-function>.lambda-url.eu-west-2.on.aws:7:1](https://<my-function>.lambda-url.eu-west-2.on.aws/?token=<my-token>)
Content Security Policy: The page's settings blocked the loading of a resource at inline ("default-src"). [<my-function>.lambda-url.eu-west-2.on.aws:28:1](https://<my-function>.lambda-url.eu-west-2.on.aws/?token=<my-token>)
Content Security Policy: The page's settings blocked the loading of a resource at https://<my-function>.lambda-url.eu-west-2.on.aws/favicon.ico ("img-src"). resource:186:19
Content Security Policy: The page's settings blocked the loading of a resource at inline ("default-src"). moz-extension:1:52727

This was in Firefox. I tried installing Google Chrome, and the page seems to work in that.

kichik added a commit that referenced this issue Nov 7, 2022
Apparently Firefox doesn't support nonce in `Content-Security-Policy` and we must use `'unsafe-inline'`.

Beef up security with restrictions on `base-uri` and `object-src` while we're here.

Fixes #141
@mergify mergify bot closed this as completed in d828443 Nov 7, 2022
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 a pull request may close this issue.

1 participant