Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

CORS 'Access-Control-Allow-Origin' does not present in header #12

@tleperou

Description

@tleperou

I cope with a CORS issue when I request a POST to '/oauth/token' from my local ember client.

"XMLHttpRequest cannot load http://localhost:1337/oauth/token. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access."

However I set config/cors.js to accept '*' origin.

Another API running on Sails 0.10 with same cors.js config returns right headers.

How this could be, why Sails does not return this header, any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions