Skip to content

Alert when user is on UCSFwifi or UCSF Eduroam stopped working #171

@HenrikBengtsson

Description

@HenrikBengtsson

Background

Webpage https://wynton.ucsf.edu/hpc/get-started/access-cluster.html tries to detect when the user is on the UCSFwifi or UCSF Eduroam network. If the user is, then a warning is displayed:

⚠️ Warning: You appear to be connected to one of the UCSF WiFi:s - 'UCSFguest', 'UCSFhousing' or UCSF 'eduroam'. If you are on 'UCSFguest' or UCSF 'eduroam', you will not be able to reach Wynton by SSH. The symptom is an "ssh: connect to log1.wynton.ucsf.edu port 22: Connection timed out" error. If you get that error, make sure to switch to another WiFi such as 'UCSFwpa' or 'UCSFhousing', or connect to the UCSF VPN, before trying again.

Issue

This used to work but has since stopped working - it no longer alerts the user.

Troubleshooting

This is because the https://www.ipify.org/ service no longer is configured for CORS:

The console log reports:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api64.ipify.org/?format=json. (Reason: CORS request did not succeed). Status code: (null).

Error obtaining IP address: TypeError: NetworkError when attempting to fetch resource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions