So I login as anonymous, I go to the dashboard section ā share ā embed code ā copy iframe code
I create locally an html file containing the copied iframe code.
When I open the html file, it shows me this:
<server_name> redirected you too many times.
The thing is I donāt want to run it with Firefox, I need it with Chrome.
However I tried it with FIrefox, I got: XHRGET
<server_dns>/api/v1/restapiinfo
[HTTP/1.1 401 Unauthorized 65ms]
Content Security Policy: The pageās settings blocked the loading of a resource at inline (āscript-srcā).
Similar behavior when I copy the short url. It seems like thereās something missing in the configuration to enable this share iframe from a different server.
@MelissaL I was just checking your opensearch_dashboards.yml file and it has basicauth and saml enabled.
Is that still the case in your current config?
Iāve checked all other options from your config and it is working for me in Firefox either with iframe or just a link.
@MelissaL Iām confused now. So, you have basicauth and anonymous in config.yml. Then in opensearch_dashboards.yml - saml and basicauth with anonymous?
It doesnāt work in Chrome. It looks like Chrome is blocking iframes by default.
Found some articles but none of the allowed me to enable iframes.
Firefox is the only browser that is not using Windows OS keystore and Internet settings by default.
Sorry for the confusion. So to clarify, in my config.yml, it is still the same I just enabled anonymous. The default configuration is still the same. And in my opensearch_dashboard.yml I have opensearch_security.auth.type: [ābasicauthā, āsamlā]
Amazing!
Can you provide me please with more details how to enable SAML in config.yml?
Also regarding the:
server.ssl.certificate: <opensearch_dashboards.crt>
server.ssl.key: <opensearch_dashboards.key>
Do I need to create the certificates or is it automatically added from opensearch? If I need to create the certificate, please can you provide me with the commands?
Regarding the certificates, you must create new client TLS certificates.
You can find some information about creating certificates in OpenSearch Documentation.