Skip to content

Commit

Permalink
Merge pull request #112 from initstring/main
Browse files Browse the repository at this point in the history
Allow same-origin credentials for loading flow files
  • Loading branch information
mehaase committed Sep 12, 2023
2 parents 25f0d5d + 08d7f31 commit 45b1a29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class LoadFile extends AppCommand {
* A Promise that resolves with the {@link LoadFile} command.
*/
public static async fromUrl(context: ApplicationStore, url: string): Promise<LoadFile> {
let file = await (await fetch(url, { credentials: "omit" })).text();
let file = await (await fetch(url)).text();
let page = await PageEditor.fromFile(file);
return new LoadFile(context, page);
}
Expand Down

0 comments on commit 45b1a29

Please sign in to comment.