-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Dashboard blocked in iframe tag #1111
Comments
For 1., you should be able to use For 2., can you tell me about what you want to achieve by embedding in an iframe? That is blocked by default for security:
If the defaults don't work for your security situation, you can override that by doing something like: # config/initializers/good_job.rb
ActiveSupport.on_load("good_job_application_controller") do
content_security_policy do |policy|
# set your own directives
end
end |
Thank you very much, I missed that part of the document!
I can re-use the dashbord web ui to developers in zealot background jobs. I'll dig it, some breaking changes to migrating, such like:
|
aha! Thanks for that context! Yep, I think do the csp-override like I shared is the best way right now to make granular changes to GoodJob's default. I think activejob-status should continue to work, as it's compatible with Active Job and just adds some before/after/around/rescue_from hooks: https://github.com/inkstak/activejob-status/blob/main/lib/activejob-status.rb#L22-L31 ...though if all you want to do is simply see if jobs are completed, you could use the |
Embed dashboard works! tiny fix:
I use this logical code to reslove dynamic scheduler. I used hard code for job status (operate redis directly), may be i need rewrite full logical about this part. 😢 |
I want use good_job instead of sidekiq but some issues happened to me:
GoodJob::Engine.routes.url_helpers.jobs_path
iframe
tag, brower returns blocked:other and renderlocalhost refused to connect.
Any help please, thanks.
The text was updated successfully, but these errors were encountered: