Need to test a service that doesn't use CORS? There's a plugin for that.

Just 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.

snap

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.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate looking for his next gig. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

Lafayette, LA https://www.raymondcamden.com

Comments