Embeded URL Dashboard with Authorization API


According to these references, I have to take Metabase session id so as to use API :

  1. https://github.com/metabase/metabase/issues/2689
  2. https://github.com/metabase/metabase/wiki/Using-the-REST-API

But my problem is that I use embeded URL to access dashboard like this
(BASIC QUESTION : embeded dashboard with url are supported from Metabase?) :

var jwt = require("jsonwebtoken");
var METABASE_SITE_URL = "http://localhost:3000";
var METABASE_SECRET_KEY = "xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxx";
var payload = {
  resource: { dashboard: 1 },
  params: {
    "from_date": null,
    "from_time": null,
    "to_date": null,
    "to_time": null
var token = jwt.sign(payload, METABASE_SECRET_KEY);

var iframeUrl = METABASE_SITE_URL + "/embed/dashboard/" + token + "#bordered=true&titled=true";

The question is how to combine Session ID with iframeUrl because I get a 401 error
like :> XML Parsing Error: syntax error Location:

For example, is any way to pass session-id as parameter to the URL like following?
(in my example I use SESSION_ID) :

To make it more simple I ask if embeded dashboard url are supported without any need of session-id OR if it is mandatory how to put it on the 'iframe" section or general how should I make the GET call?

Question : If I have created an embedded Dashboard , how can I make it public (e.g. anonymous access) without having to deal with metabase.SESSION_ID ?