CKEditor - kcfinder browse server does not work - browser

First of all I apologize for my poor english.
I am using CKEditor on my website and I've integrated kcfind.
Click the browse button was added to the server.
But when I click the button, this screen is displayed.
Blank pop-up windows and buttons do not work.

chek out if it is ok the url where you set the file
file_browser_callback: function(field, url, type, win) {
tinyMCE.activeEditor.windowManager.open({
file: 'your url'
(check the correct url)
if it matches the url you have in your browser, try to change it to instead of 127.0.0.1 => use localhost

Possibly you have a typing error, 127.0.01 instead of 127.0.0.1
Kcfinder works with default port (80) only, I think. I tried at 8080 and it didn't work. Exactly same config worked well on a different server at 80.

Related

Remove subdirectories from URL on IIS

I currently have a website running on IIS Windows Server 2019.
The website's url is : https://mywebsite.com/Sub1/login
When i get to https://mywebsite.com i obiously dont get the connexion form.
I would like to get rid of /Sub1/login and turn into https://mywebsite.com.
I tried using URL Rewrite but i don't get the syntax. Could any please help me ? :)
As Lex Li said, you can do this by setting the default document.
In IIS Manager, click the server name node, and then scroll to locate the Default Document icon.
Double click Default Document.
In the Actions pane, click Add.
In the Add Default Document dialog box, type the full filename of the default page.(such as login.aspx)
Click OK.
But the premise is that your default page needs to be placed in the root directory. This way you can directly access your default page by typing https://mywebsite.com in your browser.
In addition, you cannot use the Rewrite operation to remove the path part of the URL, because Rewrite does not change the address in the browser.

Blocked autofocusing on a form control in a cross-origin subframe

Using Chrome, when I'm trying to change values of an input located in an IFrame of another app on our server, I get an error in Chrome:
"Blocked autofocusing on a form control in a cross-origin subframe."
On production (when the two apps are hosted on the same domain) it's working, but on localhost development I can't make it to work.
I've already tried starting Chrome with the following:
--disable-web-security
--ignore-certificate-errors
--disable-site-isolation-trials
--allow-external-pages
--disable-site-isolation-for-policy
but none worked.
Has anyone has an idea how to make it work?
If any change on server side needed, it's also an option.
For me the issue was a chrome extension ( Dashlane ). I disabled it on that site an it worked. I don't know if this helps you in any way but I had the same issue and this worked for me.
edit: I also had the issue on localhost however haven't tried it yet on server.
Go to chrome://flags
Disable SameSite by default cookies
Relaunch chrome

Not able to resolve 127.0.0.1 to custom domain

In Hosts file under system32/drivers/etc I am doing this
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 debugmodesample.com
but some how 127.0.0.1 is not resolving to debugmodesample.com
Ping is not working with debugmodesample.com
Sir, working fine here, I suspect if IIS is running and up on port 80... no idea otherwise !
Did you try to bind domain name in IIS?
Open IIS Manager. (Assuming IIS 7).
In the Connections pane, expand the Sites node in the tree, and then click to select the site for which you want to add a binding.
In the Actions pane, click Bindings.
In the Site Bindings dialog box, click Add.
In the Add Site Binding dialog box, add the binding information and then click OK.
In binding information, enter proper host name then check it in the browser.

Why is an external domain name displaying my localhost site?

I have a localhost set up on my Windows 7 computer for developing a website. When I accidentally spelled GoDaddy wrong and typed goodaddy.com into Chrome and hit enter it displayed my localhost site. It didn't redirect me. The address bar still said goodaddy.com. When I viewed the source of the page it was just the source of my localhost site but the address bar still displayed view-source:goodaddy.com
I tried ctrl+f5 to refresh it, I also tried navigating to goodaddy.com on a private browsing window in Chrome and it still displayed my localhost site. Then I tried it in Firefox and Safari, and they are also displaying the localhost site while keeping goodaddy.com in the address bar.
According to WhoIs information this is a registered domain name. And when I navigate to it from a different computer it just says 'Oops! Google Chrome could not connect to goodaddy.com'
So why are all the browsers on my computer treating this domain a if it was localhost instead of a domain that it cannot connect to like it is? I don't understand at all.
Edit: Also if I typed a nonsensical domain that definitely does not exist (example: jkdkfs.com) Chrome properly just says 'Oop! Google Chrome could not connect to jkdkfs.com' instead of showing me my localhost site. How did this one domain get mapped to my localhost site across all browsers?!
I get the same thing. The domain appears to be registered by Moniker DNS (www.moniker.com) to go to 127.0.0.1. See there - http://whoisrequest.org/whois/goodaddy.com
Why? Who knows :)
Other SO thread(s) on the subject - .com domain registered to 127.0.0.1

URL Auto Appends path

I have a problem in my URL in my browser.
If I type http://int-test.company.com/test.png
It automatically became http://int-test.company.com.company.com/test.png
But if I type using the host ip (for example 10.218.132.18/test.png) it works fine.
Also it only happens on one particular host name.
Have I configured something unknowingly in the browser settings?
Any idea why?
I've tried it in all browsers (IE, Google Chrome and Firefox) and encountered the same problem.
Thank you
I would suspect it's problem of your web server configuration rather than the browser. It probably contains some check that's supposed to redirect you to the canonical address, but the check is incorrect and adds the domain to URL that already contains it.
To check, have a chat with the server by hand. It's pretty easy. Take netcat (usually called just nc) or telnet or putty, direct them to the HTTP server port (using command like telnet int-test.company.com 80 (putty is an exception -- it has configuration dialog)) and type in
GET /test.png HTTP/1.1
Host: int-test.company.com
and a blank line. If the answer starts with number begining with 3 (300 to 303) and contains line like
Location: http://int-test.company.com.company.com/test.png
than that's the problem. Get the server administrator to fix the configuration. Correct answer should begin with digit 2 and after few lines be followed by lot of garbage, which is what PNG file dumped to the console looks like.

Resources