[ARCHIVED] LTI cant include jquery or js files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an LTI working. It is written as a java spring app with https. I can successfully access the course information using the request object and call the CANVAS API and return course information. I am trying to include in my launch jsp file jquery, javascript and css files. I have tried several variations for the "src" values below but still get the console errors.
<script language="JavaScript" type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.5.1.min.js"> </script>
<script language="JavaScript" type="text/javascript" src="${pageContext.request.contextPath}/js/gradesToBanner.js"> </script>
I am getting these errors in the Developer Console of the browser:
Strict-Transport-Security: The connection to the site is untrustworthy, so the specified header was ignored
Invalid X-Frame-Options header was found when loading “https://localhost:8443/lti-grades-to-banner/launch”: “ALLOW-FROM https://msstate.test.instructure.com” is not a valid directive.
Uncaught ReferenceError: jQuery is not defined <anonymous> https://localhost:8443/lti-grades-to-banner/launch:98
Any help would be greatly appreciated.
Thanks, Jerry Howell
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks bbennett2. I found the solution. It was not a cross site browser restriction but a project setup problem.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.