Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • U ucengine
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • ucengine
  • Merge requests
  • !4

Closed
Created Jul 01, 2011 by Administrator@rootMaintainer
  • Report abuse
Report abuse

CORS handling

  • Overview 5
  • Commits 4
  • Changes 5

Created by: elishowk

Hi,

After a discussion about a complete handling of cross-site requests for UCEngine (read https://groups.google.com/d/topic/ucengine/7O-tCun5V74/discussion), I implemented an options_handler.erl to respond to "pre-flight" authorization requests. As you will see, I had to add another json helper to permit passing customized headers. These changes should allow UCEngine API to be fully requested from anywhere and with moderns browsers :

  • firefox5, and chrome 12 are tested, but should work since ff3.5
  • safari 4 and IE8 are not tested but should work because they implement the same spec for CORS (http://www.w3.org/TR/access-control/)

I hope this would help, it did in my case ! Thanks by the way for the great job on UCEngine.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: develop-4