Skip to content

Move inline scripts to the script.js file to comply with strict CSP#104

Open
odinserj wants to merge 1 commit into
face-it:mainfrom
odinserj:main
Open

Move inline scripts to the script.js file to comply with strict CSP#104
odinserj wants to merge 1 commit into
face-it:mainfrom
odinserj:main

Conversation

@odinserj

Copy link
Copy Markdown

Hi there,

There are two inline <script> blocks in TagsJobsPage.cshtml and TagsSearchPage.cshtml pages. They are used to provide callback function for the "Go" button if Dropdown mode is activated. However, this feature does not work in web applications with strict Content Security Policy where inline scripts are prohibited, leading to an error.

This PR moves callbacks to the already existing script.js file with a callback specified for the "Go" button and removes inline script tags.

  • Rename btn_go to btn_tags_go to be more specific
  • Move base URL to data-base-url attribute
  • Add a new callback function in script.js
  • Remove onclick handler in favor of the new callback
  • Remove inline script tags
  • Regenerate dashboard pages with Razor Generator

Please let me know there's anything else that should be considered.

* Rename `btn_go` to `btn_tags_go` to be more specific
* Move base URL to `data-base-url` attribute
* Add a new callback function in `script.js`
* Remove `onclick` handler in favor of the new callback
* Remove inline `script` tags
* Regenerate dashboard pages with Razor Generator
bhavishyachandra added a commit to Hangtools/Hangfire.Tags that referenced this pull request May 19, 2026
bhavishyachandra added a commit to Hangtools/Hangfire.Tags that referenced this pull request May 19, 2026
…#2)

* Rebrand packages to Hangtools and add NuGet publish workflow

* Pull in changes from face-it/Hangfire.Tags#104

* Clean up old AppVeyor/FaceIT URLs and repoint to Hangtools

* Make NuGet workflow pack each publishable package explicitly

* Avoid Hangfire Pro dependency in public publish workflow

* Address Copilot PR comments on tag redirect and icon URLs
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.

1 participant