Skandh Gupta

Skandh Gupta started this conversation 9 months ago.

23

1

aws

what to do when Chome 102: has been blocked by CORS policy: Request had a targe IP address space of 'unknown' yet the resource is in address space 'private'

What to do when Chrome 102 shows a CORS policy error: "Request had a target IP address space of 'unknown' yet the resource is in address space 'private'"?

codecool

Posted 9 months ago

To resolve the CORS policy error in Chrome 102, you can try the following steps:

Ensure Secure Connections: Make sure both the website and the server are using HTTPS (SSL/TLS) protocols. This ensures a secure connection even if both ends are in a closed network1.

Check Browser Settings: Chrome has a setting called "InsecurePrivateNetworkRequestsAllowed" which can be enabled to allow requests to private IP addresses. You can enable this setting by modifying the Windows registry2.

Use Supported Browsers: Try accessing the resource using a different browser (e.g., Firefox or Edge) to see if the issue persists. This can help determine if the problem is specific to Chrome.

Update Server Configuration: Ensure that your server is correctly configured to handle CORS requests. This may involve adding appropriate headers to the server's responses to allow cross-origin requests.

Check Network Configuration: Verify that the network configuration allows access to the private IP address space. This may involve adjusting firewall settings or network policies.

By following these steps, you should be able to resolve the CORS policy error in Chrome 102. If the issue persists, you may need to consult additional resources or seek help from a network administrator.