EMBED URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 02:30 AM
HI
can anyone tell us how to embed the external URL into ServiceNow portal. Requirement is customer given URL and we need to embed the URL into service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 09:21 PM
Thank you for your response Anand Kumar
I have created the widget by using this script and it is working fine but after clicking the widget it is redirecting to the URL. and it says the URL which are accessing no longer exists...is it issue with URL? or we need to do any authentication to reach that URL .actually they have given JSON data for authentication to the URL ..where i need to place this JSON in widget?...kindly reply for any clarification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 09:20 PM
Thank you for your response Anand Kumar
I have created the widget by using this script and it is working fine but after clicking the widget it is redirecting to the URL. and it says the URL which are accessing no longer exists...is it issue with URL? or we need to do any authentication to reach that URL .actually they have given JSON data for authentication to the URL ..where i need to place this json in widget?...kindly reply for any clarification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 09:59 PM
Hi @shabbir9,
1. Incorrect URL: Make sure that the URL you’re using in the src attribute of the iframe is correct. Double-check for typos or issues with the URL.
2. Authentication: If the URL requires authentication using JSON data, you’ll likely need to include the authentication data in your widget. You can’t include JSON data directly in an iframe source. Instead, you may need to use JavaScript to make an AJAX request to the authentication endpoint, receive a token or authentication key, and then include that in the URL of the iframe.
3. Cross-Origin Restrictions: Browsers have security restrictions that may prevent an iframe from accessing content on a different domain if the proper CORS (Cross-Origin Resource Sharing) headers are not set on the remote server. Ensure that the server hosting the content in the iframe allows requests from your domain.
Please mark it as solution proposed and helpful if it serves your purpose.
Thanks,
Anand