当我尝试instagram
在我们的 Web 应用程序上显示图像时,我收到此错误:
The resource at “https://scontent-dus1-1.cdninstagram.com/v/t51.2885-19/s150x150
/269430179_619307746060977_8863061929784384401_n.jpg?_nc_ht=scontent-dus1-1.cdninstagram.com&
_nc_cat=109&_nc_ohc=B7qUhQC8GZkAX9zaHp6&edm=APwHDrQBAAAA&ccb=7-4&
oh=00_AT8PPmyxQt8DqIAf8z4oKqY1VKWSX0Gh04M_pcVFDltIHQ&oe=61D10099&_nc_sid=1c538d”
was blocked due to its Cross-Origin-Resource-Policy header (or lack thereof).
See https://developer.mozilla.org/docs/Web/HTTP/Cross-Origin_Resource_Policy_(CORP)#
html
标签:
<img
src="https://scontent-dus1-1.cdninstagram.com/v/t51.2885-19/s150x150/269430179_619307746060977_8863061929784384401_n.jpg?_nc_ht=scontent-dus1-1.cdninstagram.com&_nc_cat=109&_nc_ohc=B7qUhQC8GZkAX9zaHp6&edm=APwHDrQBAAAA&ccb=7-4&oh=00_AT8PPmyxQt8DqIAf8z4oKqY1VKWSX0Gh04M_pcVFDltIHQ&oe=61D10099&_nc_sid=1c538d"
crossorigin="anonymous" alt="">
实施和设置后Laravel Cors
我再次收到错误,我的Laravel Cors
配置是:
'paths' => ['api/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['*'],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
我们也在apache2
本地使用网络服务器