rails 7 cross origin request blocked to localhost on firefox - ruby-on-rails

I traced the error to as of Firefox 68 https pages are not allowed to be sent to http://localhost What's the easiest workaround? I could switch to an online ide but I wanna know how to continue in my local development environment

Related

Why would a website only load with Safari (DNS timeout otherwise)?

I am working on a web app on http://pagesage.page and have deployed with Digital Ocean on a Docker container with gunicorn and meinheld with A and AAAA name records set up. Additionally, the appropriate ports for http have been set up for listening and responding.
Unfortunately, while the page responds to curl, ping, and ping6 requests, the page only ever loads on the Safari browser (and some IE distributions) and I can't seem to figure out why (I get DNS timeout errors whenever I try to load the page in Chrome or Firefox).
I've tried accessing the page from different machines (brand new and old), reset the DNS settings a few times, and reset the browser's cache, all with no success.
Does anyone have ideas or suggestions, or has anyone else encountered this same problem?
You have a problem with your SSL/TLS terminaison. The website is available on HTTP but unavailable on HTTPS. Chrome and FF redirect the user to the HTTPS version. It looks like the port 443 (used for HTTPS) is closed.

How can I access my localhost on my computer from my Android device?

I have a web application written in ASP.NET MVC 5. I simply can open it from the browser with this localhost:14920 in my computer, but I want to access the same application from my Android device's browser while my laptop and Android device are in the same network. I don't know how to access it from Android.
Note: when I type 127.0.0.1 in the Android browser I can access the IIS server, but when I type 127.0.0.1:14920 it prints Bad Request - Invalid Hostname. How can I fix this issue?
You can configure IISExpress for remote access
http://www.ryadel.com/en/iis-express-allow-external-requests-remote-clients-devices/
or just change the hosting to IIS as the earlier commenter mentioned.
Try with replacing 127.0.0.1 with your IPv4 address.
I have used ngrok in the past, when needing to hit my development machine, or have someone else hit it. It is a very useful tool and very simple to install.
Once you download it, it's just a simple command line:
https://ngrok.com/docs#expose
ngrok http 80
(That is for traffic on port 80) Since your port above looks different it would be:
ngrok http 14920
That will give a URL that you can hit or any machine or device.

Configuring SSL to work with IIS and parse server

I have an ssl certificate(Geotrust) installed to IIS 8, listening on port 443 and running on windows server 2012-r2. This works when I access https://myapp.example.com and it shows me the standard IIS page. My problem is that I am trying to connect to the parse-server(nodejs, express) running on serverUrl: http://localhost:1337/parse. So when trying to connect to https://myapp.example.com:1337/parse
chrome says: "myapp.example.com finished the connection unexpectedly" and I cant reach the expected site.
ios-simulator says: kCFStreamErrorDomainSSL, -9806.
The connections to http works as expected on the urls described above.
I have tried to set the SSL port to 1337(and portforward 443->1337 on my router), but then I can not start the parse-server on the same port.
First time doing this, so really gratefull if anyone can point me in the right direction!
Solved by doing an reverse proxy in IIS 8.
I needed two applications in IIS and downloaded them like this: yourSite->right-click middle pane->"install application from gallery" and search & download these:
Download URL Rewrite (i downloaded 3.0)
Application Request Routing
This helped a lot:
http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis

XHR to different port fails in edge

I'm trying to run a webapp on localhost (port 9000) which talks to an API, also on localhost (port 8882). This works fine in Chrome, FF and IE9, but in edge, every XHR yields the following error message:
XMLHttpRequest: Network Error 0x2efd, Could not complete the operation due to error 00002efd
I've tried setting internet security settings to the lowest level, and adding localhost to the trusted sites, but without results.
Why am I getting this error, and how can I get around it?
I don't know why, but switching the API to port 9001 instead of 8882 fixed the problem. By the way, I ran into a similar issue on Safari on Mac, solved by the change as well.

IIS serve https GET, but fails POST

I'm setting up IIS 10 on Windows Server 2019. After I installed Let's Encrypt cert via win acme some url fails.
I've setup ApploccationPoolIdentity method for my web site. Here is my setup
So far I have most of paths are working. Fails:
account/login and account/logoff
some fonts (.woff2, woff, .ttf) see image below
All above fails with 403 Status code. But they working fine if
open localhost on my VPS
unbind hhtps (:443, ssl) and reach them using http
UPD
I found that ALL POST request fails (all forms), while all GET succeeded. Not Sure why fonts fails though.
UPD 2
POST methods work on postman and IE, but fails from Google Chrome.
Version 89.0.4389.114 (Official Build) (64-bit)
UPD 3
2021-04-05 05:44:18 10.129.0.3 POST /profile/edit - 443 user#e.mail xxx.xxx.xxx.xxx Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/89.0.4389.114+Safari/537.36 https://mymydomain.ru/profile/edit 403 0 0 93
UPD 4
Mime Types and Bindings are also attached
UPD 5
I found that everything works fine if I do request to subdomain, i.e. beta.mydomain.ru rather than mydomain.ru including http:// and https://.
FYI i've issued and tested with two certificates
*.mydomain.ru, mydomain.ru
mydomain.ru (without wildcard)
I after spending lots of hours I gave up fighting this issue. Setup new environment with new certificate and everything is working fine.
Very likely could made a mistake when issues cert first time.

Resources