Skip to content

Cross-Origin call breaks website #1

@bdurrer

Description

@bdurrer

On the main page there is a blocked Cross-Origin call, which results in the webpage showing up blank.
The call is: https://api.steampowered.com/ISteamNews/GetNewsForApp/v0002/?appid=544550&count=3&maxlength=400&format=json

The resulting JS error:

TypeError: "this.state.news.data is undefined"
	value https://stationeering.com/static/js/main.640f89a3.chunk.js:1:101017
	value https://stationeering.com/static/js/main.640f89a3.chunk.js:1:100926
	lo https://stationeering.com/static/js/1.b53160a1.chunk.js:1:754083
	ao https://stationeering.com/static/js/1.b53160a1.chunk.js:1:753878
	fo https://stationeering.com/static/js/1.b53160a1.chunk.js:1:757624
	Yo https://stationeering.com/static/js/1.b53160a1.chunk.js:1:773291
	Xo https://stationeering.com/static/js/1.b53160a1.chunk.js:1:773668
	Ms https://stationeering.com/static/js/1.b53160a1.chunk.js:1:780201
	Rs https://stationeering.com/static/js/1.b53160a1.chunk.js:1:779581
	ks https://stationeering.com/static/js/1.b53160a1.chunk.js:1:778602
	ts https://stationeering.com/static/js/1.b53160a1.chunk.js:1:777505
	enqueueSetState https://stationeering.com/static/js/1.b53160a1.chunk.js:1:741562
	setState https://stationeering.com/static/js/1.b53160a1.chunk.js:1:689825
	value https://stationeering.com/static/js/main.640f89a3.chunk.js:1:100797
 react-dom.production.min.js:3869

Weirdly, the error showed up on Chrome until I visit some other page on the site, e.g https://stationeering.com/versions/recent
After that, everything seems to loads fine. That trick does not work on FireFox though.
PS: Freshly installed browsers, no cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions