Project

General

Profile

Actions

action #159384

open

coordination #154768: [saga][ux] State-of-art user experience for openQA

coordination #159570: [epic] Better integration with other tooling

Add CORS headers size:S

Added by ph03nix 12 days ago. Updated about 10 hours ago.

Status:
Feedback
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
2024-04-22
Due date:
% Done:

0%

Estimated time:

Description

User story

Let's allow other web applications to use the openQA API.

Currently, web applications refuse to use the openQA API, because the CORS Access-Control-Allow-Origin header is not set. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin

Acceptance criteria

Suggestion

Further details

Actions #1

Updated by okurz 12 days ago

  • Category set to Feature requests
  • Target version set to Ready
Actions #2

Updated by okurz 10 days ago

  • Parent task set to #159570
Actions #3

Updated by okurz 9 days ago

  • Status changed from New to Feedback
  • Assignee set to okurz

Literally just a handful of days after our last workshop session with the topic 'What are "acceptance criteria" - hint: they are not tasks' you come up with this AC which is not an AC :D

Please update the ticket description with an actual acceptance criterion, examples of where this triggers problems so that we know what we can check with and a use case.

Actions #4

Updated by ph03nix 5 days ago

  • Description updated (diff)

Updated the description accordingly.

Actions #5

Updated by ph03nix 5 days ago

okurz wrote in #note-3:

Please update the ticket description with an actual acceptance criterion, examples of where this triggers problems so that we know what we can check with and a use case.

If you really need a formalized check you need to write a custom Web application that will fetch resources from within the browser. This currently fails due to https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin.

Actions #6

Updated by okurz 5 days ago

  • Description updated (diff)
  • Status changed from Feedback to New
  • Assignee deleted (okurz)
  • Priority changed from Normal to Low

Rephrased "Acceptance criteria" to be a checkable criterion, not a task: "Web-Applications can access the openQA API from web browsers, e.g. accessing https://openqa.suse.de/api/v1/jobs/14165616". I hope that still catches what you would like to see.

Actions #7

Updated by ph03nix 5 days ago

okurz wrote in #note-6:

Rephrased "Acceptance criteria" to be a checkable criterion, not a task: "Web-Applications can access the openQA API from web browsers, e.g. accessing https://openqa.suse.de/api/v1/jobs/14165616". I hope that still catches what you would like to see.

ack.

Actions #8

Updated by okurz 1 day ago

  • Subject changed from Add CORS headers to Add CORS headers size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #9

Updated by mkittler about 10 hours ago

  • Status changed from Workable to In Progress
  • Assignee set to mkittler
Actions #10

Updated by mkittler about 10 hours ago

  • Status changed from In Progress to Feedback

Ask the OP what "other web applications" don't work

I asked on Slack.


Implement it in the mojo web app follow https://docs.mojolicious.org/Mojo/Headers#access_control_allow_origin

Draft PP: https://github.com/os-autoinst/openQA/pull/5613

Actions

Also available in: Atom PDF