Hi,

I am not able to reproduce the issue with minikube setup.
Can you please try the solution provided here
<https://serverfault.com/questions/1134033/strict-mime-type-checking-is-enabled-issue-with-pgadmin-in-azure-application-gat>?
Also what is your browser version?


Thanks,
Yogesh Mahajan
EnterpriseDB


On Tue, Aug 27, 2024 at 8:21 PM iram khan <kkhan.i...@gmail.com> wrote:

> Error :- " Refused to execute script from '
> https://pgadmin-dev.domain.com/login' because its MIME type ('text/html')
> is not executable, and strict MIME type checking is enabled.
>
> This is the error I posted about last month as well. When I try to access
> pgadmin through ingress , it keeps spinning . Even it reaches first page ,
> I login and then keeps spinning again. I am able to access through
> port-forward service and nodeport on On-prem kubernetes but not through
> ingress.
> Azure - I am able to access through port-forward but not through ingress.
> Its the same error.
> All examples on pgadmin shows to access through port-forward . But I want
> to have an ingress specific to pgadmin like
> https://pgadmin-dev.domain.com/login.
> Please help .
>
> The logs of my pod shows just redirection to nowhere . Here are the logs :-
>
> GET /browser/ HTTP/1.1" 302 205 "'
> https://pgadmin-dev.domain.com/login?next=/browser/"; "Mozilla/5.0
> (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
> 126.0.0.0 Safari/537.36 Edg/126.0.0.0"
>
> \ - - [27/Aug/2024:14:35:44 +0000] "GET /browser/ HTTP/1.1" 302 229 "'
> https://pgadmin-dev.domain.com/login?next=/browser/"; "Mozilla/5.0
> (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
> 126.0.0.0 Safari/537.36 Edg/126.0.0.0"
>  [27/Aug/2024:14:40:31 +0000] "GET / HTTP/1.1" 302 213 "-" "-"
> - - [27/Aug/2024:14:40:54 +0000] "GET / HTTP/1.1" 302 213 "-" "-"
> - - [27/Aug/2024:14:41:01 +0000] "GET / HTTP/1.1" 302 213 "-" "-"
>  - - [27/Aug/2024:14:41:24 +0000] "GET / HTTP/1.1" 302 213 "-" "-"
>  - - [27/Aug/2024:14:41:30 +0000] "GET / HTTP/1.1" 302 213 "-" "-"
>
> Ingress :-
> apiVersion: networking.k8s.io/v1
> kind: Ingress
> metadata:
>   name: pgadmin
>   namespace: admin
> spec:
>   rules:
>     - host: pgadmin-dev.{domain}.com
>       http:
>         paths:
>         - path: /
>           pathType: Prefix
>           backend:
>             service:
>               name: pgadmin-service
>               port:
>                 number: 80
>   tls:
>   - hosts:
>     - pgadmin-dev.{domain}.com
> Deployment :-
> apiVersion: apps/v1
> kind:  Deployment
> metadata:
>  name: pgadmin
>  namespace: d4-001
> spec:
>   replicas: 1
>   selector:
>     matchLabels:
>       app: pgadmin
>   template:
>     metadata:
>       labels:
>         app: pgadmin
>     spec:
>       containers:
>       - name: pgadmin
>         image: dpage/pgadmin4:8.8
>         imagePullPolicy: IfNotPresent
>         env:
>         - name: PGADMIN_DEFAULT_EMAIL
>           value: ad...@domain.com
>         - name: PGADMIN_DEFAULT_PASSWORD
>           value: admin
>         - name: PGADMIN_PORT
>           value: "80"
>         ports:
>         - containerPort: 80
>           #protocol: TCP
>         volumeMounts:
>       #- name: pgadmin-config
>           #mountPath: /pgadmin4/config_local.py
>           #subPath: config_local.py
>
>         resources:
>           limits:
>             memory: "2Gi"
>             cpu: "2"
>       volumes:
>       #- name: pgadmin-config
>         #configMap:
>           #name: pgadmin-config
>
>
>
>

Reply via email to