Defect #28188

No Access-Control-Allow-Origin

Added by anju dhiman over 4 years ago. Updated over 4 years ago.

Status:NewStart date:
Priority:UrgentDue date:
Assignee:-% Done:

0%

Category:Accounts / authentication
Target version:-
Resolution: Affected version:

Description

Hi ,

I am using the redmine api in angular js and for users and issues list, but i am getting error "No 'Access-Control-Allow-Origin'" while hit api.
Can any body help me?
I need this on urgently basis.
I am using redmine 3.3.1

History

#1 Updated by Justin Raines over 4 years ago

If you need to get this working, you can edit the gem file adding rack-cors, then modify the application file as specified here: https://github.com/cyu/rack-cors. Assuming your redmine is publically available, be careful what resources you make available, as the rest of your site would then be embeddable via JS. Resources should be as specific to rails routes you need available as possible to prevent possible security compromise.

Also available in: Atom PDF