Skip to content

[troubleshooting] remove suggested workaround re: executing inline scripts#2255

Merged
sarah11918 merged 1 commit intomainfrom
sarah11918-patch-inline-scripts
Dec 29, 2022
Merged

[troubleshooting] remove suggested workaround re: executing inline scripts#2255
sarah11918 merged 1 commit intomainfrom
sarah11918-patch-inline-scripts

Conversation

@sarah11918
Copy link
Copy Markdown
Member

  • New or updated content

Closes #2150 (The documentation issue; the greater conversation is ongoing elsewhere.)

As per @delucis suggestion and @matthewp approval, removes a problematic workaround that does not work in every case, and instead just leaves the suggestion to update your CSP.

(Note: eventually error messages will make their way to the Error Reference page. But, at least this removes potentially harmful advice for now.)

@netlify
Copy link
Copy Markdown

netlify bot commented Dec 29, 2022

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit bab120b
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/63adb4912ec621000721bbe4
😎 Deploy Preview https://deploy-preview-2255--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sarah11918 sarah11918 changed the title [troubleshooting] remove suggested workaroudn re: executing inline scripts [troubleshooting] remove suggested workaround re: executing inline scripts Dec 29, 2022
Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

LGTM — long term we do need a proper answer to this, but this will do for now.

(I was kind of unsure about removing as this workaround does work for some people so isn’t totally unhelpful, but probably not right for docs.)

@sarah11918 sarah11918 merged commit 2d16d22 into main Dec 29, 2022
@sarah11918 sarah11918 deleted the sarah11918-patch-inline-scripts branch December 29, 2022 17:29
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.

Astro inlines script and style for astro islands even with assetsInlineLimit set to 0

2 participants