在没有 SSL 的情况下将 Wufoo 链接到外部样式表

发布于 2025-01-02 06:18:43 字数 814 浏览 0 评论 0原文

我使用 Wufoo 和存储在我的服务器上的外部样式表(只是 http://,而不是 https://)。

但是,因为使用 Wufoo 生成的默认短代码设置为 SSL = 'true',如下所示...... [wufoo 用户名=“xxx”formhash=“xxx”autoresize=“true”高度=“765”标题=“显示”ssl=“true”] 某些浏览器会抛出错误,指出正在加载不安全的内容,例如 Chrome 和 IE9。此问题已在此处报告 - http://wufoo.com/forums/discussion/3815/theme-advanced-your-css-file-on-the-web-big-issue-with-ie9-browser/p1

我的问题是 - 有没有办法默认关闭 Wufoo SSL 以便访问者不会收到此错误?我并不特别担心 SSL 部分 - 它不是那么机密。或者,我可以使用 jQuery 将源代码中的 SSL='true' 更改为 SSL='false' 吗?

ps 我知道我可以手动修改嵌入代码以关闭 SSL (根据此文档 http ://www.wufoo.com/docs/url-modifications/#format)但这不可能,因为临时用户每天都会嵌入该表单。

I'm using Wufoo with an external stylesheet stored on my server (just http://, not https://).

However, because the default short code generated with Wufoo is set to SSL = 'true' like this...
[wufoo username="xxx" formhash="xxx" autoresize="true" height="765" header="show" ssl="true"]
certain browsers throw up an error saying that insecure content is being loaded e.g. Chrome and IE9. This issue has been reported here - http://wufoo.com/forums/discussion/3815/theme-advanced-your-css-file-on-the-web-big-issue-with-ie9-browser/p1

My question is - is there a way to turn off Wufoo SSL by default so that visitors don't get this error? I'm not particularly bothered about the SSL part - it's not that confidential. Alternatively can I use jQuery to change SSL='true' to SSL='false' in the source code?

p.s. I know I can modify the embed code manually to turn off SSL (as per this doc http://www.wufoo.com/docs/url-modifications/#format) but that's out of the question, with casual users embedding the form every day.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情话墙 2025-01-09 06:18:43

对于任何遇到这个问题的人,我所做的就是替换 PHP 中的 SSL 字符串(因为我使用的是 WordPress)。

这可能不是最好的解决方案,因为我要删除 SSL,但由于数据不是极其机密,我可以接受它。

<!-- Get Custom Field data (or content, etc.). In this case the custom field is called 'true'-->
<?php $ID = $post_id['ID']; ?>
<?php $custom = get_post_meta($post->ID, 'test', true); ?>              

<!-- Strip out SSL because it causes loading issues in IE9 and Chrome (since it is loading the stylesheet from a non-secure address). -->
<?php $withoutssl = str_replace('ssl="true"','ssl="false"', $custom); ?>

<!-- Apply formatting. -->
<?php $formatted = apply_filters('the_content', $withoutssl); ?>

<!-- Output the Custom Field. -->
<?php echo $formatted ?>

For anyone struggling with this issue what I have done is replace the SSL string in PHP (since I am using WordPress).

It's probably not the best solution since I am removing SSL, but since the data is not extremely confidential I can live with it.

<!-- Get Custom Field data (or content, etc.). In this case the custom field is called 'true'-->
<?php $ID = $post_id['ID']; ?>
<?php $custom = get_post_meta($post->ID, 'test', true); ?>              

<!-- Strip out SSL because it causes loading issues in IE9 and Chrome (since it is loading the stylesheet from a non-secure address). -->
<?php $withoutssl = str_replace('ssl="true"','ssl="false"', $custom); ?>

<!-- Apply formatting. -->
<?php $formatted = apply_filters('the_content', $withoutssl); ?>

<!-- Output the Custom Field. -->
<?php echo $formatted ?>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文