Steve A Posted March 9, 2021 Report Share Posted March 9, 2021 Question: I’m trying to use Ajax to fetch a JSON feed from a Trumba Connect URL, but I’m unable to due to Cross Origin Resource Sharing (CORS) limitations. Do you have examples of calling a Trumba Connect URL from javascript? If so can URLs be added? We’re getting blocked by CORS policy when I try to retrieve the JSON feed. Would adding Access-Control-Allow-Origin rules on your end the best way to proceed? Answer: There is a setting on the JSON feed settings where you can specify the domains were CORS should be allowed. To access the setting in Trumba, select the published calendar, and then select Publish Settings>Feeds tab and then select Edit Settings & Styles for the JSON feed. Enter your URL(s) in the Allowed Websites field like below. NOTE: URLs musts be fully qualified (http://www.domain.com | https://www.domain.com). Wildcards are not supported. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.