rogy-AquaLab / omniboat_robokit

新歓で使うロボキット
https://rogy-aqualab.github.io/omniboat_robokit/
Apache License 2.0
0 stars 0 forks source link

GitHub Pagesで画像が見えない #99

Closed H1rono closed 6 months ago

H1rono commented 7 months ago

https://github.com/rogy-AquaLab/omniboat_robokit/blob/5012a43bb94ca26831403514b65449377b300140/docs/03-construct-machine.md

スクリーンショット 2024-04-03 11 30 15

Googleドライブから出したリンクが読み込まれない、GitHubリポジトリ上ではキャッシュが見えるが

H1rono commented 7 months ago

せめてAltをつけるべきだな

H1rono commented 7 months ago
スクリーンショット 2024-04-11 13 10 22

403 Forbiddenなので、CORS系かな?

H1rono commented 7 months ago
スクリーンショット 2024-04-11 13 20 12

あってた...

H1rono commented 7 months ago
H1rono commented 7 months ago

crossorigin="anonymous"つけてもダメだったので諦め、別のサービスを使うのが丸い

H1rono commented 6 months ago
curlログ ``` $ curl -fvL `pbpaste` -o /tmp/hoge % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying [2404:6800:4004:812::200e]:443... * Connected to drive.google.com (2404:6800:4004:812::200e) port 443 * ALPN: curl offers h2,http/1.1 } [5 bytes data] * TLSv1.3 (OUT), TLS handshake, Client hello (1): } [512 bytes data] * TLSv1.3 (IN), TLS handshake, Server hello (2): { [122 bytes data] * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): { [15 bytes data] * TLSv1.3 (IN), TLS handshake, Certificate (11): { [6521 bytes data] * TLSv1.3 (IN), TLS handshake, CERT verify (15): { [79 bytes data] * TLSv1.3 (IN), TLS handshake, Finished (20): { [52 bytes data] * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): } [1 bytes data] * TLSv1.3 (OUT), TLS handshake, Finished (20): } [52 bytes data] * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN: server accepted h2 * Server certificate: * subject: CN=*.google.com * start date: Mar 4 06:35:50 2024 GMT * expire date: May 27 06:35:49 2024 GMT * subjectAltName: host "drive.google.com" matched cert's "*.google.com" * issuer: C=US; O=Google Trust Services LLC; CN=GTS CA 1C3 * SSL certificate verify ok. } [5 bytes data] * using HTTP/2 * [HTTP/2] [1] OPENED stream for https://drive.google.com/uc?export=view&id=1kudI_gUDvmazpXuXopX83mZ0ZC6LIms5 * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: drive.google.com] * [HTTP/2] [1] [:path: /uc?export=view&id=1kudI_gUDvmazpXuXopX83mZ0ZC6LIms5] * [HTTP/2] [1] [user-agent: curl/8.4.0] * [HTTP/2] [1] [accept: */*] } [5 bytes data] > GET /uc?export=view&id=1kudI_gUDvmazpXuXopX83mZ0ZC6LIms5 HTTP/2 > Host: drive.google.com > User-Agent: curl/8.4.0 > Accept: */* > { [5 bytes data] * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): { [282 bytes data] * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): { [282 bytes data] * old SSL session ID is stale, removing { [5 bytes data] < HTTP/2 303 < content-type: application/binary < cache-control: no-cache, no-store, max-age=0, must-revalidate < pragma: no-cache < expires: Mon, 01 Jan 1990 00:00:00 GMT < date: Mon, 15 Apr 2024 21:11:21 GMT < location: https://drive.usercontent.google.com/download?id=1kudI_gUDvmazpXuXopX83mZ0ZC6LIms5&export=view < strict-transport-security: max-age=31536000 < cross-origin-opener-policy: same-origin < content-security-policy: require-trusted-types-for 'script';report-uri /_/DriveUntrustedContentHttp/cspreport < content-security-policy: script-src 'nonce-YFyVocWovRr8spkK5mO9CQ' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri /_/DriveUntrustedContentHttp/cspreport;worker-src 'self' < permissions-policy: ch-ua-arch=*, ch-ua-bitness=*, ch-ua-full-version=*, ch-ua-full-version-list=*, ch-ua-model=*, ch-ua-wow64=*, ch-ua-form-factor=*, ch-ua-platform=*, ch-ua-platform-version=* < accept-ch: Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Model, Sec-CH-UA-WoW64, Sec-CH-UA-Form-Factor, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version < server: ESF < content-length: 0 < x-xss-protection: 0 < x-frame-options: SAMEORIGIN < x-content-type-options: nosniff < alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 < { [5 bytes data] 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 * Connection #0 to host drive.google.com left intact * Issue another request to this URL: 'https://drive.usercontent.google.com/download?id=1kudI_gUDvmazpXuXopX83mZ0ZC6LIms5&export=view' 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying [2404:6800:4004:825::2001]:443... * Connected to drive.usercontent.google.com (2404:6800:4004:825::2001) port 443 * ALPN: curl offers h2,http/1.1 } [5 bytes data] * TLSv1.3 (OUT), TLS handshake, Client hello (1): } [512 bytes data] * TLSv1.3 (IN), TLS handshake, Server hello (2): { [122 bytes data] * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): { [15 bytes data] * TLSv1.3 (IN), TLS handshake, Certificate (11): { [4231 bytes data] * TLSv1.3 (IN), TLS handshake, CERT verify (15): { [79 bytes data] * TLSv1.3 (IN), TLS handshake, Finished (20): { [52 bytes data] * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): } [1 bytes data] * TLSv1.3 (OUT), TLS handshake, Finished (20): } [52 bytes data] * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN: server accepted h2 * Server certificate: * subject: CN=*.usercontent.google.com * start date: Mar 4 07:18:04 2024 GMT * expire date: May 27 07:18:03 2024 GMT * subjectAltName: host "drive.usercontent.google.com" matched cert's "*.usercontent.google.com" * issuer: C=US; O=Google Trust Services LLC; CN=GTS CA 1C3 * SSL certificate verify ok. } [5 bytes data] * using HTTP/2 * [HTTP/2] [1] OPENED stream for https://drive.usercontent.google.com/download?id=1kudI_gUDvmazpXuXopX83mZ0ZC6LIms5&export=view * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: drive.usercontent.google.com] * [HTTP/2] [1] [:path: /download?id=1kudI_gUDvmazpXuXopX83mZ0ZC6LIms5&export=view] * [HTTP/2] [1] [user-agent: curl/8.4.0] * [HTTP/2] [1] [accept: */*] } [5 bytes data] > GET /download?id=1kudI_gUDvmazpXuXopX83mZ0ZC6LIms5&export=view HTTP/2 > Host: drive.usercontent.google.com > User-Agent: curl/8.4.0 > Accept: */* > { [5 bytes data] * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): { [282 bytes data] * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): { [282 bytes data] * old SSL session ID is stale, removing { [5 bytes data] 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0< HTTP/2 200 < x-guploader-uploadid: ABPtcPpI1iF7pB8Q42wQVrOz9P6_9g9FQTYio1OdDsymWNJ1AD8lv8-EUJ1R_YmyD5p9fZt45G4 < content-type: image/jpeg < content-security-policy: sandbox < content-security-policy: default-src 'none' < content-security-policy: frame-ancestors 'none' < x-content-security-policy: sandbox < cross-origin-opener-policy: same-origin < cross-origin-embedder-policy: require-corp < cross-origin-resource-policy: same-site < x-content-type-options: nosniff < content-disposition: inline < access-control-allow-origin: * < access-control-allow-credentials: false < access-control-allow-headers: Accept, Accept-Language, Authorization, Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Length, Content-MD5, Content-Range, Content-Type, Date, developer-token, financial-institution-id, X-Goog-Sn-Metadata, X-Goog-Sn-PatientId, GData-Version, google-cloud-resource-prefix, linked-customer-id, login-customer-id, x-goog-request-params, Host, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, Origin, OriginToken, Pragma, Range, request-id, Slug, Transfer-Encoding, hotrod-board-name, hotrod-chrome-cpu-model, hotrod-chrome-processors, Want-Digest, X-Ad-Manager-Impersonation, x-chrome-connected, X-ClientDetails, X-Client-Version, x-debug-settings-metadata, X-Firebase-Locale, X-Goog-Firebase-Installations-Auth, X-Firebase-Client, X-Firebase-Client-Log-Type, X-Firebase-GMPID, X-Firebase-Auth-Token, X-Firebase-AppCheck, X-Firebase-Token, X-Goog-Drive-Client-Version, X-Goog-Drive-Resource-Keys, X-GData-Client, X-GData-Key, X-GoogApps-Allowed-Domains, X-Goog-AdX-Buyer-Impersonation, X-Goog-Api-Client, X-Goog-Visibilities, X-Goog-AuthUser, X-Google-EOM, x-goog-ext-124712974-jspb, x-goog-ext-467253834-jspb, x-goog-ext-353267353-bin, x-goog-ext-353267353-jspb, x-goog-ext-251363160-jspb, x-goog-ext-259736195-jspb, x-goog-ext-477772811-jspb, x-goog-ext-359275022-bin, x-goog-ext-328800237-jspb, x-goog-ext-202735639-bin, x-goog-ext-223435598-bin, X-Goog-PageId, X-Goog-Encode-Response-If-Executable, X-Goog-Correlation-Id, X-Goog-Request-Info, X-Goog-Request-Reason, X-Goog-Request-Time, X-Goog-Experiments, x-goog-iam-authority-selector, x-goog-iam-authorization-token, X-Goog-Spatula, X-Goog-Travel-Bgr, X-Goog-Travel-Settings, X-Goog-Upload-Command, X-Goog-Upload-Content-Disposition, X-Goog-Upload-Content-Length, X-Goog-Upload-Content-Type, X-Goog-Upload-File-Name, X-Goog-Upload-Header-Content-Encoding, X-Goog-Upload-Header-Content-Length, X-Goog-Upload-Header-Content-Type, X-Goog-Upload-Header-Transfer-Encoding, X-Goog-Upload-Offset, X-Goog-Upload-Protocol, x-goog-user-project, X-Goog-Visitor-Id, X-Goog-FieldMask, X-Google-Project-Override, x-goog-maps-api-salt, x-goog-maps-api-signature, x-goog-maps-client-id, X-Goog-Api-Key, x-goog-spanner-database-role, X-HTTP-Method-Override, X-JavaScript-User-Agent, X-Pan-Versionid, X-Proxied-User-IP, X-Origin, X-Referer, X-Requested-With, X-Stadia-Client-Context, X-Upload-Content-Length, X-Upload-Content-Type, X-Use-Alt-Service, X-Use-HTTP-Status-Code-Override, X-Ios-Bundle-Identifier, X-Android-Package, X-Android-Cert, X-Goog-Maps-Ios-Uuid, X-Goog-Maps-Android-Uuid, X-Ariane-Xsrf-Token, X-YouTube-Bootstrap-Logged-In, X-YouTube-VVT, X-YouTube-Page-CL, X-YouTube-Page-Timestamp, X-Compass-Routing-Destination, x-framework-xsrf-token, X-Goog-Meeting-ABR, X-Goog-Meeting-Botguardid, X-Goog-Meeting-ClientInfo, X-Goog-Meeting-ClientVersion, X-Goog-Meeting-Debugid, X-Goog-Meeting-Identifier, X-Goog-Meeting-Interop-Cohorts, X-Goog-Meeting-Interop-Type, X-Goog-Meeting-OidcIdToken, X-Goog-Meeting-RtcClient, X-Goog-Meeting-StartSource, X-Goog-Meeting-Token, X-Goog-Meeting-Viewer-Token, X-Client-Data, x-sdm-id-token, X-Sfdc-Authorization, MIME-Version, Content-Transfer-Encoding, X-Earth-Engine-App-ID-Token, X-Earth-Engine-Computation-Profile, X-Earth-Engine-Computation-Profiling, X-Play-Console-Experiments-Override, X-Play-Console-Session-Id, x-alkali-account-key, x-alkali-application-key, x-alkali-auth-apps-namespace, x-alkali-auth-entities-namespace, x-alkali-auth-entity, x-alkali-client-locale, EES-S7E-MODE, cast-device-capabilities, X-Server-Timeout, x-foyer-client-environment, x-goog-greenenergyuserappservice-metadata, x-goog-sherlog-context, X-Server-Token, x-rfui-request-context < access-control-allow-methods: GET,HEAD,OPTIONS < accept-ranges: bytes < content-length: 1664109 < last-modified: Thu, 30 Mar 2023 04:31:26 GMT < date: Mon, 15 Apr 2024 21:11:22 GMT < expires: Mon, 15 Apr 2024 21:11:22 GMT < cache-control: private, max-age=0 < x-goog-hash: crc32c=ZgeaUg== < server: UploadServer < alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 < { [20815 bytes data] 100 1625k 100 1625k 0 0 896k 0 0:00:01 0:00:01 --:--:-- 1054k * Connection #1 to host drive.usercontent.google.com left intact ```

これを見るにレスポンスにaccess-control-allow-originがついてるのでCORS通りそうにも見えるが... MDN要確認

Chikurin1014 commented 6 months ago

@H1rono 今週中に何とかできる?

H1rono commented 6 months ago

なんとかする