Giter Site home page Giter Site logo

Comments (21)

adityatoshniwal avatar adityatoshniwal commented on September 27, 2024 1

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.

khushboovashi avatar khushboovashi commented on September 27, 2024 1

@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.

yogeshmahajan-1903 avatar yogeshmahajan-1903 commented on September 27, 2024

@Anbuselvam2001
Can you please try accessing pgadmin in private/incognito browser?

from pgadmin4.

Anbuselvam2001 avatar Anbuselvam2001 commented on September 27, 2024

@yogeshmahajan-1903 Thanks for your Response.

Am tried @yogeshmahajan-1903 . But am getting the below screen only

image

And also am getting the same console errors.

from pgadmin4.

Anbuselvam2001 avatar Anbuselvam2001 commented on September 27, 2024

@yogeshmahajan-1903
Could you please guide me how to achieve the same in apache2 reverse proxy?

from pgadmin4.

adityatoshniwal avatar adityatoshniwal commented on September 27, 2024

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:

  1. Run docker ps and get the pgAdmin container id.
  2. Run
docker cp <zip folder>/render_page.html <container id>:/pgadmin4/pgadmin/templates/security/
  1. Run docker restart <container id>.
  2. Try to access pgAdmin

from pgadmin4.

Anbuselvam2001 avatar Anbuselvam2001 commented on September 27, 2024

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.

adityatoshniwal avatar adityatoshniwal commented on September 27, 2024

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.

Anbuselvam2001 avatar Anbuselvam2001 commented on September 27, 2024

Some times login page load and some times login page not loading

Could you please share the apache2 sample conf file.

from pgadmin4.

Anbuselvam2001 avatar Anbuselvam2001 commented on September 27, 2024

Here is my response of security.pages.js.

from pgadmin4.

adityatoshniwal avatar adityatoshniwal commented on September 27, 2024

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.

Anbuselvam2001 avatar Anbuselvam2001 commented on September 27, 2024

Here is failure file
image

my security.pages.js.

failure.txt

from pgadmin4.

adityatoshniwal avatar adityatoshniwal commented on September 27, 2024

@Anbuselvam2001 What else is failing in the network tab? Can you also share endpoints.js.

from pgadmin4.

Anbuselvam2001 avatar Anbuselvam2001 commented on September 27, 2024

Below response I get in endpoints.js
image

from pgadmin4.

adityatoshniwal avatar adityatoshniwal commented on September 27, 2024

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.

barrelltitor avatar barrelltitor commented on September 27, 2024

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.

adityatoshniwal avatar adityatoshniwal commented on September 27, 2024

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.

adityatoshniwal avatar adityatoshniwal commented on September 27, 2024

@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 avatar Anbuselvam2001 commented on September 27, 2024

@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.

image

from pgadmin4.

Anbuselvam2001 avatar Anbuselvam2001 commented on September 27, 2024

@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.

khushboovashi avatar khushboovashi commented on September 27, 2024

Closing the issue as the issue is fixed, confirmed by the user.

from pgadmin4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.