tecwithquestion

Well-Known Member
Oct 20, 2014
61
1
58
cPanel Access Level
Root Administrator
Hello,

I have admin based created using laravel and there I am trying to open cpanel using iframe code but I am getting error as below

Refused to display 'https://demo.cpanel.net:2083/cpsess.../index.html?login=1&post_login=44745504761520' in a frame because it set 'X-Frame-Options' to 'sameorigin'.


In the ,htaccess file I already tried to add below rule but no success.

Header set Access-Control-Allow-Origin "*"
Header set X-Frame-Options "allow-from *"


Can I get some assistance on it?
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,272
313
Houston
Hello,

Is that the URL that is being returned? That's the URL for cPanel's DEMO instance and wouldn't be related to your server. Furthermore, cPanel/WHM does not run on the same web server that your site does, so making modifications through the .htaccess will have no effect.
 

tecwithquestion

Well-Known Member
Oct 20, 2014
61
1
58
cPanel Access Level
Root Administrator
Hello

I used this URL just to insert in the post. If I used my server URL, still I get the same result.

Can you guide me how can I use cPanel URL With iframe? My laravel application is hosted on the same server