Skip to content

Conversation

@wouterlucas
Copy link
Contributor

This fixes the error:
net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 302 (Found)

This fixes the error:
net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 302 (Found)

async loadImageFallback(src: string, hasAlpha: boolean) {
const img = new Image();
img.crossOrigin = 'anonymous';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Lightning 2 do it as well, but has some custom logic do NOT do it for Playstation.
Maybe don't autodetect the platform, but ImageTexture could have a static flag which could be externally disabled to not do set this crossOrigin.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS4 is currently set to go the ION route if all goes well - so skipping this until it pops up as an issue again.

@wouterlucas wouterlucas merged commit 7b9353f into main Dec 11, 2024
1 of 2 checks passed
@wouterlucas wouterlucas deleted the fix/cors-error-new-image branch January 10, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants