Need to Test a Service That Doesn’t Use CORS? There’s a Plugin for That
Join the DZone community and get the full member experience.
Join For Freejust a quick note – if you are trying to test a service that does not use cors and want to hit via your desktop browser, there is a chrome extension that let’s you enable cors for any particular url you want to test. this is great for people using their desktop browser to prototype hybrid mobile applications. the plugin is called “allow-control-allow-origin: *” (rolls off the tongue, doesn’t it?) and can be downloaded here .
once installed, it adds a pretty little icon to your chrome browser where you can toggle on/off the feature at will. note that this feature is also available via a command-line switch, but i find a simple button a heck of a lot easier to use.
Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
Writing a Vector Database in a Week in Rust
-
Building the World's Most Resilient To-Do List Application With Node.js, K8s, and Distributed SQL
-
Integrating AWS With Salesforce Using Terraform
-
The Role of AI and Programming in the Gaming Industry: A Look Beyond the Tables
Comments