Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
183 views
in Technique[技术] by (71.8m points)

php - HTTP being changed to HTTPS in src of iframe in Laravel

I am trying to make iframe in my Laravel project.

URL for iframe is http://buckymaler.com/apollo/ that is stored in database

In iframe I am getting url for source like this:

<iframe src="{{$portfolio->link}}" style="width: 100%; height: 100%" frameborder="0"></iframe>

But when I open this page on browser url is being changed to https://buckymaler.com/apollo/

In AppServiceProvider.php has no anything:

<?php

namespace AppProviders;

use IlluminateSupportServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
}

I am working in VPS server.

If you have solution, Please, help me!

question from:https://stackoverflow.com/questions/66057132/http-being-changed-to-https-in-src-of-iframe-in-laravel

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I have knew that if my domen is working with https, it makes every links and src https. My domen connected to VPS server by cloudflare.com. To solve this problem, in dashboard of cloudflare, "Always Use HTTPS" should be turned off!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...