0

I am trying to integrate my code which is written in Backbone js with REST service which is placed on some different server. But when I am hitting the web service from my local machine console window of browser displays CORS blocked.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Rajat Badjatya
  • 760
  • 6
  • 13
  • 1
    change server CORS settings – harishr Apr 03 '16 at 07:12
  • Can I do some settings on client side because server side settings is not in my hand. What I mean to say..Is there any way to enable CORS request by writing some code in jquery or in backbone at client side. – Rajat Badjatya Apr 03 '16 at 07:28
  • no ways... you cant change server's security from client... do you really think that should be allowed?? so any new client side/website can go and play with any site (e.g. banking site) – harishr Apr 03 '16 at 07:33

1 Answers1

1

Try my add on to enable Cross domain in client side when development if you are using firefox: https://addons.mozilla.org/en-US/firefox/addon/cross-domain-cors/?src=ss


Dont forget leave a good review if it useful for you.
Happy coding!

Tan Mai Van
  • 657
  • 6
  • 8
  • This solution makes your browser vulnerable to attacks, don't use it if you also use banking websites on the same browser – Ferrybig Jan 21 '19 at 16:58