Skip to content

Fixing OPTIONS response headers #1236

@EmmanVazz

Description

@EmmanVazz

Version
v2.5.0

Steps to reproduce the bug

  1. Send OPTIONS request to activities state (ex
    http://localhost:3000/data/xAPI/activities/state?stateId=resume&activityId=http%3A%2F%2F6RqRmZwBzUE_course_id&agent=%7B%22objectType%22%3A%22Agent%22%2C%22mbox%22%3A%22mailto%3Afirstlast%40mycompany.com%22%2C%22name%22%3A%22First%20Last%22%7D)

  2. Course failing to start due to missing Access-Control-Allow headers in response

Expected behaviour
Match the cloud.scorm headers
snip20180823_6

Actual behaviour
snip20180823_4

Additional information
The articulate tin can course makes this options request to the LRS. However due to the LRS not telling the course what methods, headers or origins it accepts it can't start.

I have seen this issue and tried to follow along but it seems like all the information is for v1 of this project and no longer relevant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions