I am able to run my backbone js project on localhost, but when i run index.html page directly it is giving access-control-allow-origin error only in chrome browser, in firefox it is working fine in both the cases.
able to run my backbone js project on localhost,not able to run locally in chrome browser
1.3k views Asked by Kiran Kumar At
1
There are 1 answers
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in JQUERY
- In Datatables, start value resets to 0, when column sorting
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- window.location.href redirects but is causing problems on the webpage
- Using JQuery Date Slider
- Storing selected language in localStorage
- How to stop other divs from still showing when i click a different button?
- Check multiple values with jQuery
- Bootstrap component does not want to render in Datatables function
- put white spaces when entering an amount moneytype symfony
- Trouble accessing custom header in AJAX response using jQuery in Fiware Keyrock
- I just cant make it work, HTML, JS and Firebase error
- Didn't declared variable still not getting any error in JavaScript
- Move element horizontally while scrolling vertically in pure JavaScript
- allow multi carousel in same page
- Embedded TikTok posts / thumbnail styling issue
Related Questions in BACKBONE.JS
- Can reactjs refresh/reload its props if the clicked link is not owned by reactjs?
- GrapesJS builds on macOS but not on Windows 10+
- Uncaught ReferenceError: SwaggerClient is not defined
- Webpack: "SyntaxError: Invalid regular expression flags" during runtime
- Find Model in Backbone
- I want to hide div after render call complete in backbone js
- How to add options to a Select with JQuery (Ninja Forms)
- Template rendering in backbone view
- How can I set an attribute on specifically the last child view of a Marionette CollectionView?
- Uncaught TypeError: App.Routers.Maintenances.MyRouter is not a constructor
- How to trigger an event on a form contained in a modal that updates a user's email address
- How to pass data to a View in Backbone.js?
- How to handle server's request for logout confirmation in Backbone
- How to customize pagination by hiding numbers
- Understanding Sort and comparator in Backbone.js
Related Questions in REQUIREJS
- Node.js import results in ERR_MODULE_NOT_FOUND
- Magento2 : How to add custom validation to the dynamic rows created using UI component
- requireJS element is not a function
- Webpack warning "the request of a dependency is an expression" goes away using template strings instead of variables. How?
- I have an error with my singleton design pattern
- How to use RxJs with Require.JS
- Why jest.spyOn doesn't invalidate module cache when requiring single function?
- Cypress + RequireJS: How to ESM import define from RequireJS?
- Flutter web project with javascript modules that use requireJS (Monaco editor in Flutter web)
- how to render amd module in react project
- require() turns space separeted string into an array
- Unable to resolve "../assets/srt/Audio2.srt" from "components\PlayerSound.js", how can I fix it?
- Require independent instances of module inside class
- lazy loading in angularJs
- Form Navigation in Temenos Quantum Visualizer
Related Questions in REQUIREJS-TEXT
- Migrating RequireJS/AMD with Plugins to Webpack
- Unhandled rejection Error: Load timeout for modules: template-registry-entry
- RequireJS text plugin: cannot load HTML from other domain
- Knockout Template is not working in IE 8 using RequireJS and Require Text
- RequireJs text plugin and UnderscoreJs templates
- requirejs keeps reloading all my dependencies
- RequireJS text plugin - minification of templates
- RequireJS Text Plugin Imports My Templates Incorrectly
- Cannot add requirejs-text plugin in brunch-with-marionette application
- requirejs require("text!../path/to/text/file") equivalent for browserify
- Aurelia mechanism for dynamically loading HTML View templates
- Partial html localisation
- Symfony and RequireJS - How to serve static html files?
- Testing Backbone with JSDOM
- Getting chai to play nice with requirejs
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I assume that you have ajax requests to sync the Backbone Models with the server, and when you say "on localhost" you mean "with a server running on my localhost and my browser connects to
127.0.0.1:<someport>", and when you say, "run index.html directly" you mean "launch it in the browser asfile://path/to/index.html, correct?If I recall correctly, Chrome does not allow you to access
file:URLs via ajax as if they were network requests. Firefox did that for some release (cannot recall which at the moment), but there was pushback, it was made an option, then they reenabled it (based on my recollection).Just run it with a server locally, using
nodejsorthinor whatever language your server is written in.