Home > Net >  The Header request Authorization problem
The Header request Authorization problem

Time:11-16

a new MVC project, so that the request is good, my back end without any validation, but if add token in the request header, would be an error  if add the token to the request header will be an error inside the  , I except on request header to add the token nothing at all,
I don't have any CARDS in the back-end also verify, baidu for a long time, did not solve this problem, a great god, please have a look, I really appreciate

CodePudding user response:

Error is cross-site request, you access token from 8080 to the port and your MVC project 44367 is not the same port

CodePudding user response:

Behind the browser console inside the red error from origin why only HTTP no ps://these?

CodePudding user response:

Cross-domain, interface encapsulation in the background, can call in other places

CodePudding user response:

The cross-domain eldest brother, not a port

CodePudding user response:

I will add a parameter in the header, how can cross domain

CodePudding user response:

refer to the second floor is low, the response:
browser console inside the red error from behind the origin why only HTTP no ps://these?
, there are other Don 't pass the access control check that is the way should be found the background, how is do you want to control?

CodePudding user response:

The back-end is set up can I accept all request of cross-domain, by definition cross-domain there should be no limit to me

CodePudding user response:

You request interface port in 44367, running port is 8080 pages, take a look at this $HTTP. Defaults. The headers are there other extra Settings, cause you to set the port is not the same?
  • Related