Title: Showing cross origin error in access of another domain mp3 files tags · Issue #64 · aadsm/JavaScript-ID3-Reader · GitHub
Open Graph Title: Showing cross origin error in access of another domain mp3 files tags · Issue #64 · aadsm/JavaScript-ID3-Reader
X Title: Showing cross origin error in access of another domain mp3 files tags · Issue #64 · aadsm/JavaScript-ID3-Reader
Description: I am trying to fetch all tags data like album name, artist, song image etc from amazon server. Here is one URL of song that I am passing https://s3.amazonaws.com/clueradiomedia/music/$uicideBoy$/Either Hated Or Ignored - Si...
Open Graph Description: I am trying to fetch all tags data like album name, artist, song image etc from amazon server. Here is one URL of song that I am passing https://s3.amazonaws.com/clueradiomedia/music/$uicideBoy%2...
X Description: I am trying to fetch all tags data like album name, artist, song image etc from amazon server. Here is one URL of song that I am passing https://s3.amazonaws.com/clueradiomedia/music/$uicideBoy%2...
Opengraph URL: https://github.com/aadsm/JavaScript-ID3-Reader/issues/64
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Showing cross origin error in access of another domain mp3 files tags","articleBody":"I am trying to fetch all tags data like album name, artist, song image etc from amazon server. Here is one URL of song that I am passing https://s3.amazonaws.com/clueradiomedia/music/%24uicideBoy%24/Either%20Hated%20Or%20Ignored%20-%20Single/Either%20Hated%20Or%20Ignored.mp3\r\n\r\nvar customurl = 'https://s3.amazonaws.com/clueradiomedia/music/%24uicideBoy%24/Either%20Hated%20Or%20Ignored%20-%20Single/Either%20Hated%20Or%20Ignored.mp3';\r\n\t\r\n\tID3.loadTags(customurl, function() {\r\n\t\r\n\t var getfile = customurl;\r\n\t\tvar tags = ID3.getAllTags(getfile);\r\n\t\t\r\n\t\tconsole.log(tags);\r\n\t\t\r\n\t\talert(tags.artist + \" - \" + tags.title + \", \" + tags.album);\r\n\r\n\t\tvar image = tags.picture;\r\n\t\tif (image) {\r\n\t\t\tvar base64String = \"\";\r\n\t\t\tfor (var i = 0; i \u003c image.data.length; i++) {\r\n\t\t\t\tbase64String += String.fromCharCode(image.data[i]);\r\n\t\t\t}\r\n\t\t\tvar base64 = \"data:\" + image.format + \";base64,\" +\r\n\t\t\t\t\twindow.btoa(base64String);\r\n\t\t\tdocument.getElementById('picture').setAttribute('src',base64);\r\n\t\t } else {\r\n\t\t\tdocument.getElementById('picture').style.display = \"none\";\r\n\t\t }\r\n\t},{\r\n tags: [\"title\",\"artist\",\"album\",\"picture\", \"year\", \"comment\", \"track\", \"genre\", \"lyrics\"],\r\n });\r\n\r\nBut, when I am hitting above function then its showing me this error \"Access to XMLHttpRequest at 'http://s3.amazonaws.com/clueradiomedia/music/%24uicideBoy%24/Either%20Hated%20Or%20Ignored%20-%20Single/Either%20Hated%20Or%20Ignored.mp3' from origin 'http://----' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.\"\r\n\r\nI am checking the main file but its minified so I can't deduct how to pass request headers for XML request.\r\n\r\nCan please suggest me how to pass allow origin headers here?\r\n\r\nThanks!\r\n\r\n","author":{"url":"https://github.com/php07magic","@type":"Person","name":"php07magic"},"datePublished":"2018-11-14T14:27:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/64/JavaScript-ID3-Reader/issues/64"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5a5e2949-f49f-9367-222f-e8563dd4ce37 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8568:1AF714:216D51F:2A77FF5:6991ABFB |
| html-safe-nonce | 859a2e505684584a3acafe032b3fa9e4b55fcb8346d3b74da34bd0a3ad6f8517 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTY4OjFBRjcxNDoyMTZENTFGOjJBNzdGRjU6Njk5MUFCRkIiLCJ2aXNpdG9yX2lkIjoiODQ3ODAwMDY3NjUyMTIyNTIxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c6931a89d792b538574affb8669203182424e69ca3634e6c0da4f24259a92398 |
| hovercard-subject-tag | issue:380723082 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aadsm/JavaScript-ID3-Reader/64/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e25058a24b1395c041ef6686b32d2de1c0bba1f5773d6e1a2da29e9362ccccbb/aadsm/JavaScript-ID3-Reader/issues/64 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e25058a24b1395c041ef6686b32d2de1c0bba1f5773d6e1a2da29e9362ccccbb/aadsm/JavaScript-ID3-Reader/issues/64 |
| og:image:alt | I am trying to fetch all tags data like album name, artist, song image etc from amazon server. Here is one URL of song that I am passing https://s3.amazonaws.com/clueradiomedia/music/$uicideBoy%2... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | php07magic |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/aadsm/JavaScript-ID3-Reader git https://github.com/aadsm/JavaScript-ID3-Reader.git |
| octolytics-dimension-user_id | 78122 |
| octolytics-dimension-user_login | aadsm |
| octolytics-dimension-repository_id | 614697 |
| octolytics-dimension-repository_nwo | aadsm/JavaScript-ID3-Reader |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 614697 |
| octolytics-dimension-repository_network_root_nwo | aadsm/JavaScript-ID3-Reader |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width