upgraded web app from 8.6.4 to 8.17.1 and getting CORS issue on API call
sorry, I am new to Umbraco and get to upgrade existing web app to 8.17.1 from 8.6.4, all seems working fine, except at plugin where code is written in html and .js using angular JS.
earlier there is no any issues to call API, but after upgradation, we are getting CORS error while calling API.
I have compared older and newer version project, and seems any thing not worked out after trying various options.
upgraded web app from 8.6.4 to 8.17.1 and getting CORS issue on API call
sorry, I am new to Umbraco and get to upgrade existing web app to 8.17.1 from 8.6.4, all seems working fine, except at plugin where code is written in html and .js using angular JS.
earlier there is no any issues to call API, but after upgradation, we are getting CORS error while calling API.
I have compared older and newer version project, and seems any thing not worked out after trying various options.
below are the JS file code.
angular.module("umbraco") .controller("WG.BibleVerseSelectorController", function ($scope, $http, notificationsService) { const getBibleUrl = (responseType) =>
https://api.esv.org/v3/passage/${responseType}?q=
; const apiKey = "*************"; const authToken =Token ${apiKey}
; $scope.verseBloks = [] $scope.books = ["Genesis", "Exodus", "Leviticus", "Numbers", "Deuteronomy", "Joshua", "Judges", "Ruth", "1 Samuel", "2 Samuel", "1 Kings", "2 Kings", "1 Chronicles", "2 Chronicles", "Ezra", "Nehemiah", "Esther", "Job", "Psalms", "Proverbs", "Ecclesiastes", "Song of Solomon", "Isaiah", "Jeremiah", "Lamentations", "Ezekiel", "Daniel", "Hosea", "Joel", "Amos", "Obadiah", "Jonah", "Micah", "Nahum", "Habakkuk", "Zephaniah", "Haggai", "Zechariah", "Malachi", "Matthew", "Mark", "Luke", "John", "Acts", "Romans", "1 Corinthians", "2 Corinthians", "Galatians", "Ephesians", "Philippians", "Colossians", "1 Thessalonians", "2 Thessalonians", "1 Timothy", "2 Timothy", "Titus", "Philemon", "Hebrews", "James", "1 Peter", "2 Peter", "1 John", "2 John", "3 John", "Jude", "Revelation"];below are the html code
is working on a reply...