How To Bypass GWT Same Origin Policy (SOP) In Chrome
Posted by blogmeister on
March 15, 2012
GWT‘s Same Origin Policy (SOP) problem is common especially for newbies. This happens if your GWT front end client accesses a remote service that is hosted in the same local domain in your PC but having a different port.
Browsers still considers this a violation of the SOP policy. I have read that Internet Explorer has a lax web security policy so you may be able to use that without encountering this restriction. However, Internet Explorer sucks and Firefox is just too damn heavy to load even with just one tab.
So I am left with Google Chrome. You can run Google Chrome with web security disabled but I would advise you to create it as a shortcut in Windows and create an alias in Mac OS. Here is how I did them.
Windows
- right click anywhere on your desktop, choose New > Shortcut
- then type this in the text field C:\Users\[USERNAME]\AppData\Local\Google\Chrome\Application\chrome.exe -allow-file-access-from-files -disable-web-security
- click OK
Mac OSX
- open Terminal
- edit your .profile file
- add this to the end of the file alias chromegwt=’/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome -disable-web-security’
- save file
- close Terminal window or open a new Terminal window tab then type chromegwt and you should then see Google Chrome launch without web security.
Note: you can rename it any name you want. I just used chromegwt so I would know that this Chrome is used only for GWT purposes.
Remember not to use this same browser when browsing the web as it can lead to disastrous results.
Share the post "How To Bypass GWT Same Origin Policy (SOP) In Chrome"
tags: alias, chrome, firefox, google web kit, gwt, ie, internet explorer, same origin policy, shortcut, sop
No Comments
Angry Birds For Google Chrome
Posted by blogmeister on
May 15, 2011
Amid the excitement after I learned that this game went public, I almost forgot to blog about it.
Now you can play Angry Birds within the Chrome browser. I was impressed when I checked the game out. Man, how did they manage to make this one? And within Google Chrome itself. I am not sure if my laptop is slow or the game eats up humongous resources because the game tends to lag at some points while loading and even during game play.
Still, this is one impressive game I tell you. Just like in the original Angry Bird games in other consoles. And if you want to get on to the hard levels right away, someone just hacked it after the game went public after a few hours. You just need to paste some Javascript code in the address bar of your browser to unlock and lock the levels.
Check it out and let me know what you think. If you have not played Angry Birds yet, then here is your chance now. It is free after all. The game comes in both SD and HD version so pick your option.
tags: angry birds, chrome, google, rovio
No Comments
New Release Of Google Chrome 10
Posted by blogmeister on
March 9, 2011
Just got some good news from Google’s Blog. Google Chrome 10 is now available! Just three weeks ago, a speedy Chrome beta was released and today, these speed improvements are available in the new version. With today’s stable release, your most complex web apps will run more quickly and responsively in the browser.
Chrome’s new settings interface will help you get to the right settings quickly so you don’t have to dig endlessly to find a way to import your bookmarks or change your browser’s homepage. A search box is added that shows you the settings you are looking for, as you type.
On top of that, you can also copy and paste a direct link into Chrome’s address bar to jump to a specific settings page. No more long, frustrating phone conversations with your dad on where to find that specific setting in the browser! Check out this video for a demo.
For those of you who save your passwords in the browser, you can now quickly log on to the websites you frequent even when you switch computers, by simply synchronizing those passwords across your computers. You can also encrypt those passwords with your own secret passphrase for extra security.
To enable sync on each of your computers, visit the “Personal Stuff” section in Chrome’s settings (or just type “sync” in the settings search box). You can also choose to sync bookmarks, extensions, preferences, themes and more.
You will be even safer as you speed around the web, as the sandboxing technology was extended to the integrated Flash Player in Chrome. So if you are using Windows Vista or newer versions, you will benefit from the additional layer of protection against malicious webpages.









