Loading WAMs by entering URL

Hi,
is there any running example on loading WAMs by using their URL?
Or is this not even possible because of the Same Origin Policy which disallows reading remote resources?

It would be super helpful if someone could clarify this.

Sascha

Hi Sascha,

It’s a primary goal of Sequencer Party to support third party WAMs.

In short I think it should work if the remote WAM’s server returns a Access-Control-Allow-Origin:* header.

If that doesn’t work I may have broken it recently. I have been changing that code trying to get SharedArrayBuffers working, which after Spectre attacks require a number of headers controlling how the page may be loaded and what it can load (CORP and COEP).

I’m travelling for the next week but after that I will check this further and confirm it works.

My goal here is to build the best environment for WAM developers as well as users so please let me know how it goes!

Cheers
Tom

Hi Sascha,

I believe that the problem you encountered was likely that your host needs to return the HTTP header Access-Control-Allow-Origin:* in order for the WAM to be loadable.

For example, this hosted WAM is loadable within Sequencer Party:

https://mainline.i3s.unice.fr/PedalEditor/Back-End/functional-pedals/published/StonePhaserAnasound/index.js

Does that work for you?

Cheers,
Tom

Hi Tom,
I just saw your message! Thanks for your reply, I will check your suggestion and tell you if it worked then. :slight_smile:

Sascha

Hi Tom,

yes it works now with Access-Control-Allow-Origin:* :wink: Thanks for your help.

Sascha

1 Like

Excellent! Are you loading existing WAMs, or working on building your own? If you are working on your own be sure to join #webaudiomodules on the WebAudio slack - https://web-audio-slackin.herokuapp.com