Guest User

Untitled

a guest
Mar 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. "Uncaught SecurityError: Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match."
  2.  
  3. var myapp.story1 = "Complete text of story1.txt"
  4.  
  5. fetch("./config.json").then(function(res) {
  6. // res instanceof Response == true.
  7. if (res.ok) {
  8. res.json().then(function(data) {
  9. console.log(data);
  10. });
  11. } else {
  12. console.log("Looks like the response wasn't perfect, got status", res.status);
  13. }
  14. }, function(e) {
  15. console.log("Fetch failed!", e);
  16. });
Add Comment
Please, Sign In to add comment