Workflow and Completion are no longer embeddable in web pages #13318

Closed
opened 2026-02-21 19:11:36 -05:00 by yindo · 2 comments
Owner

Originally created by @aki-1995 on GitHub (Apr 24, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.3.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After upgrading to 1.3.0, Workflow and Completion are no longer embeddable in web pages.

✔️ Expected Behavior

No response

Actual Behavior

Image

Originally created by @aki-1995 on GitHub (Apr 24, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.3.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce After upgrading to 1.3.0, Workflow and Completion are no longer embeddable in web pages. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior ![Image](https://github.com/user-attachments/assets/06903813-beb0-446f-ab90-4cc121c68377)
yindo closed this issue 2026-02-21 19:11:36 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 24, 2025):

The issue you're experiencing with Workflow and Completion not being embeddable in web pages after upgrading to Dify version 1.3.0 is likely related to the 'X-Frame-Options' header being set to 'DENY'. In the Dify codebase, this header is set in the wrapResponseWithXFrameOptions function located in the web/middleware.ts file. The header is set to 'DENY' unless the environment variable NEXT_PUBLIC_ALLOW_EMBED is set to 'true' or the pathname starts with '/chat' [1].

To resolve this issue, you can try setting the NEXT_PUBLIC_ALLOW_EMBED environment variable to 'true' in your configuration. This should allow the embedding of Workflow and Completion in web pages.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Apr 24, 2025): <!-- Answer --> The issue you're experiencing with Workflow and Completion not being embeddable in web pages after upgrading to Dify version 1.3.0 is likely related to the 'X-Frame-Options' header being set to 'DENY'. In the Dify codebase, this header is set in the `wrapResponseWithXFrameOptions` function located in the `web/middleware.ts` file. The header is set to 'DENY' unless the environment variable `NEXT_PUBLIC_ALLOW_EMBED` is set to 'true' or the pathname starts with '/chat' <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/middleware.ts)</sup>. To resolve this issue, you can try setting the `NEXT_PUBLIC_ALLOW_EMBED` environment variable to 'true' in your configuration. This should allow the embedding of Workflow and Completion in web pages. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/110e8a4d-876c-4527-9630-5a1418d47989?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/110e8a4d-876c-4527-9630-5a1418d47989?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/110e8a4d-876c-4527-9630-5a1418d47989?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/110e8a4d-876c-4527-9630-5a1418d47989?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/110e8a4d-876c-4527-9630-5a1418d47989?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/110e8a4d-876c-4527-9630-5a1418d47989?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/110e8a4d-876c-4527-9630-5a1418d47989?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Apr 24, 2025):

Only chatflow and chatbot can be embedded. This is the original design

@crazywoola commented on GitHub (Apr 24, 2025): Only chatflow and chatbot can be embedded. This is the original design
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13318