# Embed dashboard using reverse proxy - Incorrect HTTP method for uri

**URL:** <https://discuss.elastic.co/t/embed-dashboard-using-reverse-proxy-incorrect-http-method-for-uri/321878>\
**Category:** Kibana\
**Created:** [December 23, 2022, 3:31am UTC](https://discuss.elastic.co/t/embed-dashboard-using-reverse-proxy-incorrect-http-method-for-uri/321878 "2022-12-23T03:31:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tzachi.shachar](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@Tzachi.shachar](https://discuss.elastic.co/u/Tzachi.shachar)\
**Post date:** [December 23, 2022, 3:31am UTC](https://discuss.elastic.co/t/embed-dashboard-using-reverse-proxy-incorrect-http-method-for-uri/321878/1 "2022-12-23T03:31:43Z")

</div>

Hi,

I'm using nginx as a reverse proxy with the following configuration:

```auto
 server {
     listen 4443 ssl;
	 server_name localhost;	 
	 ssl_certificate /etc/nginx/ssl/nginx.crt;
     ssl_certificate_key /etc/nginx/ssl/nginx.key;
	 ssl_session_cache shared:SSL:1m;
	 ssl_session_timeout 5m;
	 ssl_ciphers HIGH:!aNULL:!MD5;
	 ssl_prefer_server_ciphers on;

     location / {		
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Authorization "Basic <based64 username:password>";
		proxy_set_header X-Found-Cluster <cluster id>;
        proxy_pass <cloud url>; # actual kibana URL
     }
 }

```

and when I try to call [https://localhost:4443/goto/55077420-81bc-11ed-9098-f1b7c3308432](https://localhost:4443/goto/55077420-81bc-11ed-9098-f1b7c3308432)

I'm getting {"error":"Incorrect HTTP method for uri [/goto/55077420-81bc-11ed-9098-f1b7c3308484] and method [GET], allowed: [POST]","status":405}.

I set in Kibana in the edit user settings:  
xpack.security.sameSiteCookies: "None"

12 months ago it was working in the POC but I changed the cluster so I guess I'm missing something.

Thanks.

---

<div class="post-metadata">

**Author:** ![Tzachi.shachar](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@Tzachi.shachar](https://discuss.elastic.co/u/Tzachi.shachar)\
**Post date:** [December 23, 2022, 4:09am UTC](https://discuss.elastic.co/t/embed-dashboard-using-reverse-proxy-incorrect-http-method-for-uri/321878/2 "2022-12-23T04:09:23Z")

</div>

solved by removing the proxy\_set\_header X-Found-Cluster and  
replace proxy\_set\_header Host $host; with proxy\_set\_header Host $proxy\_host;

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 20, 2023, 4:09am UTC](https://discuss.elastic.co/t/embed-dashboard-using-reverse-proxy-incorrect-http-method-for-uri/321878/3 "2023-01-20T04:09:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
