Comments (21)
Some times login page load and some times login page not loading
Could you please share the apache2 sample conf file.
You said its already setup. Setting up reverse proxy is not pgAdmin scope. So you provide what I asked here #7479 (comment). You also shared your docker compose so I asked this - #7479 (comment).
Without this, we can't help you.
from pgadmin4.
@Anbuselvam2001, try the solution given here, https://serverfault.com/questions/1134033/strict-mime-type-checking-is-enabled-issue-with-pgadmin-in-azure-application-gat
from pgadmin4.
@Anbuselvam2001
Can you please try accessing pgadmin in private/incognito browser?
from pgadmin4.
@yogeshmahajan-1903 Thanks for your Response.
Am tried @yogeshmahajan-1903 . But am getting the below screen only
And also am getting the same console errors.
from pgadmin4.
@yogeshmahajan-1903
Could you please guide me how to achieve the same in apache2 reverse proxy?
from pgadmin4.
Hi @Anbuselvam2001,
I'm trying to fix the issue you're getting in the console. Download the attached
render_page.html.zip
file, unzip it and follow the steps below:
- Run
docker ps
and get the pgAdmin container id. - Run
docker cp <zip folder>/render_page.html <container id>:/pgadmin4/pgadmin/templates/security/
- Run
docker restart <container id>
. - Try to access pgAdmin
from pgadmin4.
Thanks for your Response @adityatoshniwal
I have two layer of reverse proxy http://localhost:5051/pgadmin4/login works as Expected. But Parent Reverse proxy is apache2 reverse proxy which is manage few web applications. once am try to access using dns way it was showing the above errors.
Could you please guide me how to resolve the below error
Refused to execute script from 'https://YYYYYY.com/pgadmin4/login?next=%2Fpgadmin4%2Fbrowser%2F' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
from pgadmin4.
Hi @Anbuselvam2001,
Open the browser, open dev tools and go to network tab. Then open pgAdmin url and check the network url with security.pages.js. Share the response tab of the URL.
from pgadmin4.
Some times login page load and some times login page not loading
Could you please share the apache2 sample conf file.
from pgadmin4.
Here is my response of security.pages.js.
from pgadmin4.
Here is my response of security.pages.js. res.txt
I think this is a success case, I'll need the failure case.
from pgadmin4.
my security.pages.js.
from pgadmin4.
@Anbuselvam2001 What else is failing in the network tab? Can you also share endpoints.js.
from pgadmin4.
Below response I get in endpoints.js
from pgadmin4.
Below response I get in endpoints.js
I think this is the issue. enpoints.js is not loading. Can you please share more details from the network tab for endpoints.js? Details like what is the complete URL of endpointjs, and where it is redirecting to - redirect URL.
from pgadmin4.
I have the same issue, but with a single layer of nginx proxy and I don't have pgadmin on a sub-location, it's on /
The js files get 302'd and never actually load in the browser
from pgadmin4.
I have the same issue, but with a single layer of nginx proxy and I don't have pgadmin on a sub-location, it's on /
The js files get 302'd and never actually load in the browser
Can you share you nginx config please?
from pgadmin4.
@Anbuselvam2001 Try adding below env to docker compose:
PGADMIN_CONFIG_PROXY_X_FOR_COUNT=2
PGADMIN_CONFIG_PROXY_X_PROTO_COUNT=2
PGADMIN_CONFIG_PROXY_X_HOST_COUNT=2
PGADMIN_CONFIG_PROXY_X_PORT_COUNT=2
from pgadmin4.
@Anbuselvam2001 Try adding below env to docker compose:
PGADMIN_CONFIG_PROXY_X_FOR_COUNT=2 PGADMIN_CONFIG_PROXY_X_PROTO_COUNT=2 PGADMIN_CONFIG_PROXY_X_HOST_COUNT=2 PGADMIN_CONFIG_PROXY_X_PORT_COUNT=2
@adityatoshniwal I tried but getting the same.
from pgadmin4.
@Anbuselvam2001, try the solution given here, https://serverfault.com/questions/1134033/strict-mime-type-checking-is-enabled-issue-with-pgadmin-in-azure-application-gat
@khushboovashi Thanks for your response. The above issue was Fixed.
from pgadmin4.
Closing the issue as the issue is fixed, confirmed by the user.
from pgadmin4.
Related Issues (20)
- Cursor position goes to end when editing Table Field/Constrait HOT 1
- Unable to change user password in pgAdmin web HOT 3
- 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
- Query Scratch Pad is visible by default even if closed once before
- Ctrl+C to copy does not work in data grid HOT 6
- Activity dashboard State details panels all show the same query HOT 2
- TIL: Using the `PGADMIN_DEFAULT_USER` in a docker image does not work HOT 2
- need setup google authentication HOT 9
- Error message not displayed when sql statement contains Arabic letters HOT 1
- Add support for Debian trixie HOT 19
- Dashboard State panel show wrong details when inspecting a Session HOT 1
- Typing in edit boxes goes to end of word HOT 1
- pgAdmin password fails after reboot HOT 4
- Unable to Install latest version (8.11) on Arch Linux HOT 1
- OAuth2 issue in pgAdmin 4. HOT 1
- Cannot authenticate with Github Oauth2: SQL error NOT NULL constraint failed: user.username HOT 1
- Broken interface display on android chrome. HOT 1
- v8.11 PSQL - No longer be able to copy the contents. HOT 1
- v8.11 Dashboard - "Something went wrong message
- react-data-grid improper function on Firefox 115.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgadmin4.