首页 > 其他分享 >Access to image at

Access to image at

时间:2024-08-05 10:40:22浏览次数:11  
标签:origin image been Access private file

Access to image at ... from origin ... has been blocked 图片跨域

Access to image at 'http://127.0.0.1:3000/api/getImg?url=/uploads/file/20240421/file-1713715007811-logo.png' from origin 'http://ggbol.gnway.cc' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local.

*** 报错导致图片加载不出来

在这里插入图片描述

解决办法:地址栏输入对应地址

谷歌:chrome://flags/

edge:edge://flags/

搜索以下关键词

Block insecure private network requests

在这里插入图片描述

查询后,修改为“Disabled”,并Relaunch重新启动下,点击后会自动重启浏览器重启后,就解决了此跨域问题。

标签:origin,image,been,Access,private,file
From: https://www.cnblogs.com/ProgrammerMao-001/p/18342754

相关文章

  • 【arxiv 2024】VideoGPT+: Integrating Image and Video Encoders for Enhanced Video
    【arxiv2024】VideoGPT+:IntegratingImageandVideoEncodersforEnhancedVideoUnderstanding一、前言Abstract1Introduction2RelatedWorks3Method4Dataset5ProposedBenchmark6Experiments7Conclusion8QualitativeResults9AdditionalImplementation......
  • Android ImageProxy 到 byteArray 并通过套接字发送
    我正在尝试将ImageProxy转换为byteArray,以通过套接字将其发送到python服务器。我正在使用Camerax,这是我的图像分析:mageAnalysisimageAnalysis=newImageAnalysis.Builder().setTargetResolution(newSize(720,640))......
  • centos7 解决docker 拉取镜像错误 error pulling image configuration: download fai
    为什么会出现i/otimeout错误?i/otimeout错误主要是由于网络连接不稳定或者服务器响应慢导致的。当Docker尝试从镜像仓库拉取镜像时,如果在规定时间内没有得到响应,就会出现i/otimeout错误。“错误的根源在于网络连接和镜像仓库的响应速度” 解决方案:换源为了解决这个......
  • 【C#】WPF自定义Image实现图像缩放、平移
    1.xaml实现<UserControlx:Class="HalconDemo.ImageUserControl"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://sche......
  • Hugging Face Access Tokens 四种用法
    访问HuggingFace中的资源,需要使用AccessTokens,可以在HuggingFace设置页面(https://huggingface.co/settings/tokens)生成自己的token。一旦你获得了token,可以有下面几种方法使用它:一、直接在代码中传递token类似如下代码,在代码中直接传递HuggingFace的API令牌。fro......
  • RawImage保存图片
      usingSystem.IO;usingUnityEngine;usingUnityEngine.UI;publicclassSaveRawImageAsPNG:MonoBehaviour{publicRawImagerawImage;publicvoidSaveImage(){if(rawImage.textureisTexture2Dtexture2D){//......
  • WebApi连接数据库报错:尝试加载Oracle客户端时引发BadImageFormatException
    出现的问题  今天在公司用C#搭建一个WebApi服务,接受请求并连接数据库进行查询,但连接数据库时报错:尝试加载Oracle客户端时引发BadImageFormatException。如果安装32位客户端组件的情况下以64位模式运行,将出现此问题。问题点  我之后了解点,确定了OracleClient客户端确实安装......
  • Google Translate API 客户端没有“Translate_image”属性
    importosfromgoogle.cloudimporttranslate_v3beta1astranslatedefupload_and_translate(input_dir,output_dir,target_language):"""Uploadsallimagesinadirectory,translatesthemusingGoogleTranslate,anddownloadsthetrans......
  • IIS6.1+ASP+ACCESS网站迁移
    1.首先在源web服务器IIS管理器中将要迁移的网站停止,然后将要迁移的网站整个目录拷贝到目标服务器相同目录下;2.通过cmd命令进到源web服务器inetsrv目录:cd/dc:\windows\system32\inetsrv3.使用以下命令将源web服务器中IIS应用程序池配置信息导出:appcmdlistapppool/config/......
  • docker 拉取镜像超时:error pulling image configuration: download failed after atte
    之前是正常的,今天就罢工了,可能原因是国外镜像不稳定,被针对了吧。errorpullingimageconfiguration:downloadfailedafterattempts=6:dialtcp168.143.171.189:443:i/otimeout那就改为国内镜像:1.创建/etc/docker目录(已有的跳过)sudomkdir-p/etc/docker 2.修改......