René's URL Explorer Experiment


Title: Strict CSP breaks bold tags in annotation text · Issue #7380 · plotly/plotly.js · GitHub

Open Graph Title: Strict CSP breaks bold tags in annotation text · Issue #7380 · plotly/plotly.js

X Title: Strict CSP breaks bold tags in annotation text · Issue #7380 · plotly/plotly.js

Description: Using the new strict CSP support breaks bold tags in annotation text. Steps to reproduce: Include the plotly.css file. Content Security Policy that disallows inline stylesheets. Annotations where the text includes tag. I've reproduce...

Open Graph Description: Using the new strict CSP support breaks bold tags in annotation text. Steps to reproduce: Include the plotly.css file. Content Security Policy that disallows inline stylesheets. Annotations where t...

X Description: Using the new strict CSP support breaks bold tags in annotation text. Steps to reproduce: Include the plotly.css file. Content Security Policy that disallows inline stylesheets. Annotations where t...

Opengraph URL: https://github.com/plotly/plotly.js/issues/7380

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strict CSP breaks bold tags in annotation text","articleBody":"Using the new strict CSP support breaks bold tags in annotation text.\n\n### Steps to reproduce:\n1. Include the plotly.css file.\n2. Content Security Policy that disallows inline stylesheets.\n3. Annotations where the text includes `\u003cb\u003e` tag.\n\nI've reproduced this problem in Vue 3 with Plotly 3.0.1 here: https://stackblitz.com/edit/vitejs-vite-1gco7d7q?file=src%2Fcomponents%2FPlotlyExample.vue\n\nThe Plotly code is like so, with bold tags around the text annotations **X axis** and **Y axis**\n```\n  Plotly.newPlot(plotlyContainer.value, [{ x: [1, 2, 3], y: [2, 1, 2] }], {\n    annotations: [\n      {\n        xref: 'paper',\n        yref: 'paper',\n        x: 0,\n        xanchor: 'right',\n        y: 1,\n        yanchor: 'bottom',\n        text: '\u003cb\u003eX axis\u003c/b\u003e label',\n        showarrow: false,\n      },\n      {\n        xref: 'paper',\n        yref: 'paper',\n        x: 1,\n        xanchor: 'left',\n        y: 0,\n        yanchor: 'top',\n        text: '\u003cb\u003eY axis\u003c/b\u003e label',\n        showarrow: false,\n      },\n    ],\n  });\n```\n\nCSP:\n```\n    \u003cmeta\n      http-equiv=\"Content-Security-Policy\"\n      content=\"default-src 'self'; img-src 'self' data: blob:; style-src 'self' 'sha256-jehvI5/Zi1PSH21Fi6ZfQYAtiGucyVGUH4ziRLU+Bfc=';\"\n    /\u003e\n```\n\n(NOTE: because of how the Vite dev server works, I need to include the sha256 checksum of the plotly-3.0.1.css file, in a production build it wouldn't be necessary.)\n\n### Expected result:\n\n![Image](https://github.com/user-attachments/assets/96fa92e2-a166-4c2f-b9c9-d76cf569b0c9)\n\nI produced this image by commenting out the CSP meta tag in the reproduction code linked to above.\n\n### Actual result:\n\n![Image](https://github.com/user-attachments/assets/cfefaade-6844-4e56-863b-5063fa02f570)","author":{"url":"https://github.com/inari-mchristie","@type":"Person","name":"inari-mchristie"},"datePublished":"2025-02-27T15:52:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/7380/plotly.js/issues/7380"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:59389815-38ac-14f5-d0a8-e660b2d60cf6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAAAA:9FF13:E949D:136728:6A56D05C
html-safe-noncebac7ac8b30a883d7e9fc03fe337048d03c8c0eca563312b975c4f01b3f2ec5e1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUFBOjlGRjEzOkU5NDlEOjEzNjcyODo2QTU2RDA1QyIsInZpc2l0b3JfaWQiOiIxMDQ2NzM1OTc3NjY0OTI1Nzg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacadc3ac4834414e9e1ebf7385f4d6e7fe4c44a45b75247871b895fc1f4099a006
hovercard-subject-tagissue:2884924400
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/7380/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4247f0982453b6e86e721e27f5a64f45c3ec7ee3d17aa06512f2a35446def09b/plotly/plotly.js/issues/7380
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4247f0982453b6e86e721e27f5a64f45c3ec7ee3d17aa06512f2a35446def09b/plotly/plotly.js/issues/7380
og:image:altUsing the new strict CSP support breaks bold tags in annotation text. Steps to reproduce: Include the plotly.css file. Content Security Policy that disallows inline stylesheets. Annotations where t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameinari-mchristie
hostnamegithub.com
expected-hostnamegithub.com
Nonedf99b7164e1d961b639cf5d3cbd6b5ba673edc67bd7e47cdc4746b96099e11ae
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id45646037
octolytics-dimension-repository_nwoplotly/plotly.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45646037
octolytics-dimension-repository_network_root_nwoplotly/plotly.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3146ab55fc8763ab0e1d2a875e600b3a545bc751
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/7380#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F7380
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F7380
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/issues/7380
Reloadhttps://github.com/plotly/plotly.js/issues/7380
Reloadhttps://github.com/plotly/plotly.js/issues/7380
Please reload this pagehttps://github.com/plotly/plotly.js/issues/7380
plotly https://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Please reload this pagehttps://github.com/plotly/plotly.js/issues/7380
Notifications https://github.com/login?return_to=%2Fplotly%2Fplotly.js
Fork 2k https://github.com/login?return_to=%2Fplotly%2Fplotly.js
Star 18.3k https://github.com/login?return_to=%2Fplotly%2Fplotly.js
Code https://github.com/plotly/plotly.js
Issues 772 https://github.com/plotly/plotly.js/issues
Pull requests 58 https://github.com/plotly/plotly.js/pulls
Actions https://github.com/plotly/plotly.js/actions
Security and quality 0 https://github.com/plotly/plotly.js/security
Insights https://github.com/plotly/plotly.js/pulse
Code https://github.com/plotly/plotly.js
Issues https://github.com/plotly/plotly.js/issues
Pull requests https://github.com/plotly/plotly.js/pulls
Actions https://github.com/plotly/plotly.js/actions
Security and quality https://github.com/plotly/plotly.js/security
Insights https://github.com/plotly/plotly.js/pulse
Strict CSP breaks bold tags in annotation texthttps://github.com/plotly/plotly.js/issues/7380#top
P2considered for next cyclehttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P2%22
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/inari-mchristie
inari-mchristiehttps://github.com/inari-mchristie
on Feb 27, 2025https://github.com/plotly/plotly.js/issues/7380#issue-2884924400
https://stackblitz.com/edit/vitejs-vite-1gco7d7q?file=src%2Fcomponents%2FPlotlyExample.vuehttps://stackblitz.com/edit/vitejs-vite-1gco7d7q?file=src%2Fcomponents%2FPlotlyExample.vue
https://private-user-images.githubusercontent.com/148123436/417673178-96fa92e2-a166-4c2f-b9c9-d76cf569b0c9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQwNzQ2MzIsIm5iZiI6MTc4NDA3NDMzMiwicGF0aCI6Ii8xNDgxMjM0MzYvNDE3NjczMTc4LTk2ZmE5MmUyLWExNjYtNGMyZi1iOWM5LWQ3NmNmNTY5YjBjOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcxNVQwMDEyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02M2JjYWQ4NGE2NjJiZTk0YmUwZGNiYTk3Yzg2YWVkZGNhYmQ3MTk3MjRlODI1MmRhNmQwOWZhNTViNThmYjlmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.fzmeJ4NhCH5Q7jx13f5pEgP51En_IxYpvlPc5Dgzv3Y
https://private-user-images.githubusercontent.com/148123436/417673296-cfefaade-6844-4e56-863b-5063fa02f570.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQwNzQ2MzIsIm5iZiI6MTc4NDA3NDMzMiwicGF0aCI6Ii8xNDgxMjM0MzYvNDE3NjczMjk2LWNmZWZhYWRlLTY4NDQtNGU1Ni04NjNiLTUwNjNmYTAyZjU3MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcxNVQwMDEyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMzQ1NzZlZTYxZTAzYTFkNDNiMmYxYWUxZWUxNTFmN2M1MmQ5MzU2YmZlY2MwZjhiZDM0MWFlYWIzMWM5MzQ1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.hkRxTxKptWf48KBBSAxmDWPHtvNDGQhnjGuyUrIu4IU
P2considered for next cyclehttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P2%22
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.