Sunday, November 19, 2017

Enable Wifi on Ubuntu Machine

Issue: The wifi is not working on Ubuntu machine. The network options shows
'Wifi  Disabled'

Solution:
1. Make sure your hardware wifi switch is enabled. Usually from keyboard you should be able to switch it on using Wifi symbol key (or with combination of function key and wifi key)

2. To verify if the wifi is blocked by hard or soft switches, you can by running th below command from terminal

Command:
user@machine:~$ rfkill list all
 Output:
0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: brcmwl-0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

The output shows if soft or hard switches are blocking. If all of them shows no as shown above, that indicates that all look good. If not then see which one shows yes and use the below command.
Command:
user@machine:~$ sudo rfkill unblock all
Enter password and this will unblock the soft switch

If option 'hard blocked' in the output shows yes, that means the machine wifi hardware is disabled and you can enable it as described in point 1 above.





Access to XMLHttpRequest at 'from origin has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. .net core angular

Issue: The angular application was getting error from API that the origin has been blocked by CORS policy. Solution: Make sure that the...