Re: MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
От | Yogesh Mahajan |
---|---|
Тема | Re: MIME type ('text/html') is not executable, and strict MIME type checking is enabled. |
Дата | |
Msg-id | CAMa=N=MZg_Fu8iGPKA4=zaoaDHFKwjaqmBhr8VCz=+RwsfKFEw@mail.gmail.com обсуждение исходный текст |
Ответ на | MIME type ('text/html') is not executable, and strict MIME type checking is enabled. (iram khan <kkhan.iram@gmail.com>) |
Список | pgadmin-support |
Hi,
I am not able to reproduce the issue with minikube setup.
Can you please try the solution provided here? Also what is your browser version?
Thanks,
Yogesh Mahajan
EnterpriseDB
On Tue, Aug 27, 2024 at 8:21 PM iram khan <kkhan.iram@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 :-kind: Ingressmetadata:name: pgadminnamespace: adminspec:rules:- host: pgadmin-dev.{domain}.comhttp:paths:- path: /pathType: Prefixbackend:service:name: pgadmin-serviceport:number: 80tls:- hosts:- pgadmin-dev.{domain}.comDeployment :-apiVersion: apps/v1kind: Deploymentmetadata:name: pgadminnamespace: d4-001spec:replicas: 1selector:matchLabels:app: pgadmintemplate:metadata:labels:app: pgadminspec:containers:- name: pgadminimage: dpage/pgadmin4:8.8imagePullPolicy: IfNotPresentenv:- name: PGADMIN_DEFAULT_EMAILvalue: admin@domain.com- name: PGADMIN_DEFAULT_PASSWORDvalue: admin- name: PGADMIN_PORTvalue: "80"ports:- containerPort: 80#protocol: TCPvolumeMounts:#- name: pgadmin-config#mountPath: /pgadmin4/config_local.py#subPath: config_local.pyresources:limits:memory: "2Gi"cpu: "2"volumes:#- name: pgadmin-config#configMap:#name: pgadmin-config
В списке pgadmin-support по дате отправления: